mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
trim trailing whitespaces (#14044)
This commit is contained in:
parent
75676ebe86
commit
5356a8b157
1 changed files with 3 additions and 3 deletions
|
@ -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(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue