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 authored and sharkdp committed Sep 23, 2024
1 parent 8e0bd33 commit 27c6b50
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 27c6b50

Please sign in to comment.