mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Clippy lints
This commit is contained in:
parent
9467f81c58
commit
0d5d63a80e
16 changed files with 67 additions and 77 deletions
|
@ -97,7 +97,9 @@ impl Shift {
|
|||
tt::Leaf::Literal(lit) => lit.id = self.shift(lit.id),
|
||||
},
|
||||
tt::TokenTree::Subtree(tt) => {
|
||||
tt.delimiter.as_mut().map(|it: &mut Delimiter| it.id = self.shift(it.id));
|
||||
if let Some(it) = tt.delimiter.as_mut() {
|
||||
it.id = self.shift(it.id);
|
||||
};
|
||||
self.shift_all(tt)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue