resolve all lints, update MSRV

This commit is contained in:
dsgallups 2025-01-22 16:29:02 -05:00 committed by Jeremy Soller
parent 166b59f560
commit f05a69a9d9
18 changed files with 251 additions and 283 deletions

View file

@ -48,11 +48,11 @@ impl<'a> LineIter<'a> {
}
}
impl<'a> Iterator for LineIter<'a> {
impl Iterator for LineIter<'_> {
type Item = (Range<usize>, LineEnding);
fn next(&mut self) -> Option<Self::Item> {
let start = self.start;
match self.string[start..self.end].find(&['\r', '\n']) {
match self.string[start..self.end].find(['\r', '\n']) {
Some(i) => {
let end = start + i;
self.start = end;