mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
error: using a non-octal value to set unix file permissions
|
|
--> $DIR/non_octal_unix_permissions.rs:12:18
|
|
|
|
|
LL | options.mode(440);
|
|
| ^^^ help: consider using an octal literal instead: `0o440`
|
|
|
|
|
= note: `-D clippy::non-octal-unix-permissions` implied by `-D warnings`
|
|
|
|
error: using a non-octal value to set unix file permissions
|
|
--> $DIR/non_octal_unix_permissions.rs:17:47
|
|
|
|
|
LL | let _permissions = Permissions::from_mode(647);
|
|
| ^^^ help: consider using an octal literal instead: `0o647`
|
|
|
|
error: using a non-octal value to set unix file permissions
|
|
--> $DIR/non_octal_unix_permissions.rs:26:26
|
|
|
|
|
LL | permissions.set_mode(644);
|
|
| ^^^ help: consider using an octal literal instead: `0o644`
|
|
|
|
error: using a non-octal value to set unix file permissions
|
|
--> $DIR/non_octal_unix_permissions.rs:31:18
|
|
|
|
|
LL | builder.mode(755);
|
|
| ^^^ help: consider using an octal literal instead: `0o755`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|