diff options
Diffstat (limited to 'crates/ra_ide_db/src/line_index_utils.rs')
-rw-r--r-- | crates/ra_ide_db/src/line_index_utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_db/src/line_index_utils.rs b/crates/ra_ide_db/src/line_index_utils.rs index daf9d8ab9..effbef11d 100644 --- a/crates/ra_ide_db/src/line_index_utils.rs +++ b/crates/ra_ide_db/src/line_index_utils.rs | |||
@@ -18,7 +18,7 @@ struct LineIndexStepIter<'a> { | |||
18 | utf16_chars: Option<(TextUnit, std::slice::Iter<'a, Utf16Char>)>, | 18 | utf16_chars: Option<(TextUnit, std::slice::Iter<'a, Utf16Char>)>, |
19 | } | 19 | } |
20 | 20 | ||
21 | impl<'a> LineIndexStepIter<'a> { | 21 | impl LineIndexStepIter<'_> { |
22 | fn from(line_index: &LineIndex) -> LineIndexStepIter { | 22 | fn from(line_index: &LineIndex) -> LineIndexStepIter { |
23 | let mut x = LineIndexStepIter { line_index, next_newline_idx: 0, utf16_chars: None }; | 23 | let mut x = LineIndexStepIter { line_index, next_newline_idx: 0, utf16_chars: None }; |
24 | // skip first newline since it's not real | 24 | // skip first newline since it's not real |
@@ -27,7 +27,7 @@ impl<'a> LineIndexStepIter<'a> { | |||
27 | } | 27 | } |
28 | } | 28 | } |
29 | 29 | ||
30 | impl<'a> Iterator for LineIndexStepIter<'a> { | 30 | impl Iterator for LineIndexStepIter<'_> { |
31 | type Item = Step; | 31 | type Item = Step; |
32 | fn next(&mut self) -> Option<Step> { | 32 | fn next(&mut self) -> Option<Step> { |
33 | self.utf16_chars | 33 | self.utf16_chars |