Skip to content

Commit

Permalink
Fix a new clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tmccombs committed Sep 23, 2024
1 parent b191368 commit 793e23d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regex_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 793e23d

Please sign in to comment.