Skip to content

Commit cd1e41f

Browse files
committed
refactor/polish ~ fix cargo clippy complaints (allow range_plus_one; clippy bug workaround)
* ref: <rust-lang/rust-clippy#4898>
1 parent f6f8595 commit cd1e41f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tr/expand.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ impl<'a> Iterator for ExpandSet<'a> {
9595
self.unesc.next(); // this is the '-'
9696
let last = self.unesc.next().unwrap(); // this is the end of the range
9797

98+
#[allow(clippy::range_plus_one)]
99+
{
98100
self.range = first as u32 + 1..last as u32 + 1;
101+
}
99102
}
100103

101104
return Some(first); // in any case, return the next char

0 commit comments

Comments
 (0)