Fix a clippy warning

This commit is contained in:
Aram 🍐 2023-01-12 01:43:32 -05:00
parent 76b6a6e346
commit fa634a08dc

View file

@ -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))
} }