diff options
Diffstat (limited to 'src/parse/regex/mod.rs')
| -rw-r--r-- | src/parse/regex/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/regex/mod.rs b/src/parse/regex/mod.rs index b8dd8ba..f35d3f2 100644 --- a/src/parse/regex/mod.rs +++ b/src/parse/regex/mod.rs @@ -271,8 +271,8 @@ impl Pattern { } impl CompiledPattern { - pub fn matches(&self, bytes: &[u8]) -> bool { - self.dfa.matches(bytes) + pub fn matches(&self, bytes: impl AsRef<[u8]>) -> bool { + self.dfa.matches(bytes.as_ref()) } } |
