diff options
author | Andrew Gallant <jamslam@gmail.com> | 2019-06-16 18:37:51 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2019-06-16 18:37:51 -0400 |
commit | 7b9972c30876797103d6b51c14dd8f9bf1001c92 (patch) | |
tree | fa4e1c6c75c23de5a5552470d173e02d78bd5575 /grep-matcher | |
parent | 9f000c29109cf369c4c28254f0cf9b9216a1950d (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.rs | 2 |
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, } } |