trim trailing whitespaces (#14044)

This commit is contained in:
gftea 2023-01-30 20:03:44 +01:00
parent 75676ebe86
commit 5356a8b157

View file

@ -160,9 +160,9 @@ fn structure_node(node: &SyntaxNode) -> Option<StructureNode> {
let label = match target_trait { let label = match target_trait {
None => format!("impl {}", target_type.syntax().text()), None => format!("impl {}", target_type.syntax().text()),
Some(t) => { Some(t) => {
format!("impl {}{} for {}", format!("impl {}{} for {}",
it.excl_token().map(|x| x.to_string()).unwrap_or_default(), it.excl_token().map(|x| x.to_string()).unwrap_or_default(),
t.syntax().text(), t.syntax().text(),
target_type.syntax().text(), target_type.syntax().text(),
) )
} }