diff options
Diffstat (limited to 'src/regex_helper.rs')
-rw-r--r-- | src/regex_helper.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex_helper.rs b/src/regex_helper.rs index 98211fe..39878f5 100644 --- a/src/regex_helper.rs +++ b/src/regex_helper.rs @@ -16,7 +16,7 @@ fn hir_has_uppercase_char(hir: &Hir) -> bool { use regex_syntax::hir::*; match hir.kind() { - HirKind::Literal(Literal(bytes)) => match std::str::from_utf8(&bytes) { + HirKind::Literal(Literal(bytes)) => match std::str::from_utf8(bytes) { Ok(s) => s.chars().any(|c| c.is_uppercase()), Err(_) => bytes.iter().any(|b| char::from(*b).is_uppercase()), }, |