From 6230ab302a56ca27884ed8a0cba22b2c887433f3 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sat, 28 Dec 2019 23:48:34 -0600 Subject: [PATCH] refactor/polish ~ fix `cargo clippy` complaints (allow range_plus_one; `clippy` bug workaround) * ref: --- src/tr/expand.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tr/expand.rs b/src/tr/expand.rs index f35e1e563..510e33925 100644 --- a/src/tr/expand.rs +++ b/src/tr/expand.rs @@ -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