mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Clippy Fix
This commit is contained in:
parent
79f2651262
commit
948a2dee09
1 changed files with 2 additions and 7 deletions
|
@ -675,14 +675,9 @@ impl<SpanMap, S> Converter<SpanMap, S> {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
match token {
|
||||
syntax::NodeOrToken::Token(token) => {
|
||||
} else if let syntax::NodeOrToken::Token(token) = token {
|
||||
return Some(token);
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
}
|
||||
WalkEvent::Leave(ele) => {
|
||||
if let Some(mut v) = self.append.remove(&ele) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue