aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/file_structure.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src/file_structure.rs')
-rw-r--r--crates/ide/src/file_structure.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/file_structure.rs b/crates/ide/src/file_structure.rs
index 713c76957..33d3c5323 100644
--- a/crates/ide/src/file_structure.rs
+++ b/crates/ide/src/file_structure.rs
@@ -176,7 +176,7 @@ fn structure_token(token: SyntaxToken) -> Option<StructureNode> {
176 if let Some(comment) = ast::Comment::cast(token) { 176 if let Some(comment) = ast::Comment::cast(token) {
177 let text = comment.text().trim(); 177 let text = comment.text().trim();
178 178
179 if let Some(region_name) = text.strip_prefix("// region:").map(|text| text.trim()) { 179 if let Some(region_name) = text.strip_prefix("// region:").map(str::trim) {
180 return Some(StructureNode { 180 return Some(StructureNode {
181 parent: None, 181 parent: None,
182 label: region_name.to_string(), 182 label: region_name.to_string(),