mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Apply some clippy suggestions
This commit is contained in:
parent
4402f2b280
commit
47747cd412
19 changed files with 66 additions and 80 deletions
|
@ -283,7 +283,7 @@ trait TokenConvertor {
|
|||
let (id, idx) = self.id_alloc().open_delim(range);
|
||||
subtree.delimiter = Some(tt::Delimiter { id, kind });
|
||||
|
||||
while self.peek().map(|it| it.kind() != closed).unwrap_or(false) {
|
||||
while self.peek().map_or(false, |it| it.kind() != closed) {
|
||||
self.collect_leaf(&mut subtree.token_trees);
|
||||
}
|
||||
let last_range = match self.bump() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue