mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-07 00:50:46 +00:00
Apply some clippy suggestions
This commit is contained in:
parent
4402f2b280
commit
47747cd412
19 changed files with 66 additions and 80 deletions
|
@ -115,7 +115,7 @@ impl<'a> TokenSource for SubtreeTokenSource {
|
|||
fn is_keyword(&self, kw: &str) -> bool {
|
||||
match self.cached.get(self.curr.1) {
|
||||
Some(t) => t.text == *kw,
|
||||
_ => false,
|
||||
None => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue