Skip to content

Commit 365a8f0

Browse files
committed
thanks clippy
1 parent 1981f6f commit 365a8f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-attributes/src/parse/attribute.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ fn attr_valid(attr: &BStr) -> bool {
8383
return false;
8484
}
8585

86-
attr.bytes().all(|b| match b {
87-
b'-' | b'.' | b'_' | b'A'..=b'Z' | b'a'..=b'z' | b'0'..=b'9' => true,
88-
_ => false,
86+
attr.bytes().all(|b| {
87+
matches!(b,
88+
b'-' | b'.' | b'_' | b'A'..=b'Z' | b'a'..=b'z' | b'0'..=b'9')
8989
})
9090
}
9191

0 commit comments

Comments
 (0)