mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +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:
parent
522d3ae1b6
commit
6230ab302a
1 changed files with 3 additions and 0 deletions
|
@ -95,7 +95,10 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue