namespace fix

This commit is contained in:
Piotr Siuszko 2024-08-14 10:18:59 +02:00
parent 3576df7d27
commit c526585f77
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ fn is_executable(path: &PathBuf) -> bool {
#[cfg(not(target_os = "windows"))]
fn is_executable(path: &PathBuf) -> bool {
use std::os::unix::fs::PermissionsExt;
if let Ok(metadata) = fs::metadata(path) {
if let Ok(metadata) = std::fs::metadata(path) {
let permissions = metadata.permissions();
permissions.mode() & 0o111 != 0
} else {