Unnamed repository; edit this file 'description' to name the repository.
Update crates/ide/src/file_structure.rs
Co-authored-by: Jonas Schievink <[email protected]>
gftea 2023-01-31
parent 28b7460 · commit 75676eb
-rw-r--r--crates/ide/src/file_structure.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/ide/src/file_structure.rs b/crates/ide/src/file_structure.rs
index ab1365e317..afcdf7b598 100644
--- a/crates/ide/src/file_structure.rs
+++ b/crates/ide/src/file_structure.rs
@@ -161,9 +161,10 @@ fn structure_node(node: &SyntaxNode) -> Option<StructureNode> {
None => format!("impl {}", target_type.syntax().text()),
Some(t) => {
format!("impl {}{} for {}",
- it.excl_token().map(|x| x.to_string()).unwrap_or_default(),
- t.syntax().text(),
- target_type.syntax().text(),)
+ it.excl_token().map(|x| x.to_string()).unwrap_or_default(),
+ t.syntax().text(),
+ target_type.syntax().text(),
+ )
}
};