mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Cleanup
This commit is contained in:
parent
88267c86c0
commit
8a39519e1c
5 changed files with 81 additions and 79 deletions
|
@ -18,7 +18,7 @@ struct LineIndexStepIter<'a> {
|
|||
utf16_chars: Option<(TextUnit, std::slice::Iter<'a, Utf16Char>)>,
|
||||
}
|
||||
|
||||
impl<'a> LineIndexStepIter<'a> {
|
||||
impl LineIndexStepIter<'_> {
|
||||
fn from(line_index: &LineIndex) -> LineIndexStepIter {
|
||||
let mut x = LineIndexStepIter { line_index, next_newline_idx: 0, utf16_chars: None };
|
||||
// skip first newline since it's not real
|
||||
|
@ -27,7 +27,7 @@ impl<'a> LineIndexStepIter<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> Iterator for LineIndexStepIter<'a> {
|
||||
impl Iterator for LineIndexStepIter<'_> {
|
||||
type Item = Step;
|
||||
fn next(&mut self) -> Option<Step> {
|
||||
self.utf16_chars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue