Update crates/ide/src/file_structure.rs

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
This commit is contained in:
gftea 2023-01-30 19:17:48 +01:00 committed by GitHub
parent 28b7460db1
commit 75676ebe86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),
)
}
};