From 27c6b5091924485b2fd4c2d784dc9cf5f91d3f5a Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Mon, 23 Sep 2024 01:17:43 -0600 Subject: [PATCH] Fix a new clippy warning --- src/regex_helper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regex_helper.rs b/src/regex_helper.rs index 39878f544..b86bbefe3 100644 --- a/src/regex_helper.rs +++ b/src/regex_helper.rs @@ -67,7 +67,7 @@ fn hir_matches_strings_with_leading_dot(hir: &Hir) -> bool { if let Some(hir) = hirs.next() { match hir.kind() { - HirKind::Literal(Literal(bytes)) => bytes.starts_with(&[b'.']), + HirKind::Literal(Literal(bytes)) => bytes.starts_with(b"."), _ => false, } } else {