1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

refactor/polish ~ fix cargo clippy complaints (allow range_plus_one; clippy bug workaround)

* ref: <https://github.com/rust-lang/rust-clippy/issues/4898>
This commit is contained in:
Roy Ivy III 2019-12-28 23:48:34 -06:00
parent 522d3ae1b6
commit 6230ab302a

View file

@ -95,8 +95,11 @@ impl<'a> Iterator for ExpandSet<'a> {
self.unesc.next(); // this is the '-'
let last = self.unesc.next().unwrap(); // this is the end of the range
#[allow(clippy::range_plus_one)]
{
self.range = first as u32 + 1..last as u32 + 1;
}
}
return Some(first); // in any case, return the next char
}