mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-09 06:38:32 -04:00
Fix a clippy warning
This commit is contained in:
parent
76b6a6e346
commit
fa634a08dc
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ fn is_file_insecurely_readable(path: &str) -> Option<(bool, bool)> {
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::os::unix::fs::MetadataExt;
|
use std::os::unix::fs::MetadataExt;
|
||||||
|
|
||||||
let mode = File::open(&path).ok()?.metadata().ok()?.mode();
|
let mode = File::open(path).ok()?.metadata().ok()?.mode();
|
||||||
Some((mode & 0o40 > 0, mode & 0o4 > 0))
|
Some((mode & 0o40 > 0, mode & 0o4 > 0))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue