diff --git a/crates/nu-command/src/filesystem/rm.rs b/crates/nu-command/src/filesystem/rm.rs index 39626bb453..e10206a1c6 100644 --- a/crates/nu-command/src/filesystem/rm.rs +++ b/crates/nu-command/src/filesystem/rm.rs @@ -1,4 +1,5 @@ use std::env::current_dir; +#[cfg(unix)] use std::os::unix::prelude::FileTypeExt; use std::path::PathBuf;