mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Run cargo +nightly fix --clippy -Z unstable-options
This commit is contained in:
parent
eab80cd961
commit
b8ddcb0652
48 changed files with 132 additions and 149 deletions
|
@ -48,7 +48,7 @@ impl<'t> TokenSource for TextTokenSource<'t> {
|
|||
|
||||
fn is_keyword(&self, kw: &str) -> bool {
|
||||
let pos = self.curr.1;
|
||||
if !(pos < self.tokens.len()) {
|
||||
if pos >= self.tokens.len() {
|
||||
return false;
|
||||
}
|
||||
let range = TextRange::offset_len(self.start_offsets[pos], self.tokens[pos].len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue