mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
14 lines
659 B
Text
14 lines
659 B
Text
error: call to `set_readonly` with argument `false`
|
|
--> $DIR/permissions_set_readonly_false.rs:19:5
|
|
|
|
|
LL | permissions.set_readonly(false);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: on Unix platforms this results in the file being world writable
|
|
= help: you can set the desired permissions using `PermissionsExt`. For more information, see
|
|
https://doc.rust-lang.org/std/os/unix/fs/trait.PermissionsExt.html
|
|
= note: `-D clippy::permissions-set-readonly-false` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::permissions_set_readonly_false)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|