Unnamed repository; edit this file 'description' to name the repository.
trim trailing whitespaces (#14044)
gftea 2023-01-31
parent 75676eb · commit 5356a8b
-rw-r--r--crates/ide/src/file_structure.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide/src/file_structure.rs b/crates/ide/src/file_structure.rs
index afcdf7b598..dcca3d323e 100644
--- a/crates/ide/src/file_structure.rs
+++ b/crates/ide/src/file_structure.rs
@@ -160,9 +160,9 @@ fn structure_node(node: &SyntaxNode) -> Option<StructureNode> {
let label = match target_trait {
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(),
+ format!("impl {}{} for {}",
+ it.excl_token().map(|x| x.to_string()).unwrap_or_default(),
+ t.syntax().text(),
target_type.syntax().text(),
)
}