rm: replace #[cfg(not(windows))] with #[cfg(unix)]

This commit is contained in:
Daniel Hofstetter 2025-08-19 11:40:40 +02:00
parent f9b6e36d54
commit c47a4e6eaf

View file

@ -11,7 +11,7 @@ use std::ffi::{OsStr, OsString};
use std::fs::{self, Metadata};
use std::io::{IsTerminal, stdin};
use std::ops::BitOr;
#[cfg(not(windows))]
#[cfg(unix)]
use std::os::unix::ffi::OsStrExt;
#[cfg(unix)]
use std::os::unix::fs::PermissionsExt;