summaryrefslogtreecommitdiffstats
path: root/grep-matcher
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2019-06-16 18:37:51 -0400
committerAndrew Gallant <jamslam@gmail.com>2019-06-16 18:37:51 -0400
commit7b9972c30876797103d6b51c14dd8f9bf1001c92 (patch)
treefa4e1c6c75c23de5a5552470d173e02d78bd5575 /grep-matcher
parent9f000c29109cf369c4c28254f0cf9b9216a1950d (diff)
style: fix deprecations
Use `dyn` for trait objects and use `..=` for inclusive ranges.
Diffstat (limited to 'grep-matcher')
-rw-r--r--grep-matcher/src/interpolate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/grep-matcher/src/interpolate.rs b/grep-matcher/src/interpolate.rs
index 168dd343..445518de 100644
--- a/grep-matcher/src/interpolate.rs
+++ b/grep-matcher/src/interpolate.rs
@@ -134,7 +134,7 @@ fn find_cap_ref(replacement: &[u8]) -> Option<CaptureRef> {
/// Returns true if and only if the given byte is allowed in a capture name.
fn is_valid_cap_letter(b: &u8) -> bool {
match *b {
- b'0' ... b'9' | b'a' ... b'z' | b'A' ... b'Z' | b'_' => true,
+ b'0' ..= b'9' | b'a' ..= b'z' | b'A' ..= b'Z' | b'_' => true,
_ => false,
}
}