mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Merge commit 'a911652360
' into sync-from-ra
This commit is contained in:
parent
0661390ad4
commit
e4866b6ddb
315 changed files with 7088 additions and 4415 deletions
|
@ -775,7 +775,7 @@ where
|
|||
self.punct_offset = Some((curr.clone(), 0.into()));
|
||||
let range = curr.text_range();
|
||||
let range = TextRange::at(range.start(), TextSize::of('.'));
|
||||
(SynToken::Punct { token: curr, offset: 0 as usize }, range)
|
||||
(SynToken::Punct { token: curr, offset: 0_usize }, range)
|
||||
} else {
|
||||
self.punct_offset = None;
|
||||
let range = curr.text_range();
|
||||
|
@ -799,7 +799,7 @@ where
|
|||
}
|
||||
|
||||
let token = if curr.kind().is_punct() {
|
||||
SynToken::Punct { token: curr, offset: 0 as usize }
|
||||
SynToken::Punct { token: curr, offset: 0_usize }
|
||||
} else {
|
||||
SynToken::Ordinary(curr)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue