We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca40b0c commit 79e70ccCopy full SHA for 79e70cc
clippy_lints/src/non_octal_unix_permissions.rs
@@ -50,7 +50,7 @@ fn check_binary_unix_permissions(lit_kind: &LitKind, snip: &str) -> bool {
50
51
let group_sizes: Vec<usize> = num_lit.integer.split('_').map(str::len).collect();
52
// check whether is binary format unix permissions
53
- if group_sizes.len() != 3 {
+ if group_sizes.len() != 3 && group_sizes.len() != 4 {
54
return false;
55
}
56
group_sizes.iter().all(|len| *len == 3)
0 commit comments