mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
Fix trash-support
feature flag (#4394)
Pass it through to be inclued with `--all-features` Make clippy without `--all-features` happy
This commit is contained in:
committed by
GitHub
parent
12d4c2986c
commit
e1f98c1bfd
@ -1,4 +1,5 @@
|
||||
use std::collections::HashMap;
|
||||
#[cfg(feature = "trash-support")]
|
||||
use std::io::ErrorKind;
|
||||
#[cfg(unix)]
|
||||
use std::os::unix::prelude::FileTypeExt;
|
||||
@ -73,6 +74,7 @@ fn rm(
|
||||
call: &Call,
|
||||
) -> Result<PipelineData, ShellError> {
|
||||
let trash = call.has_flag("trash");
|
||||
#[cfg(feature = "trash-support")]
|
||||
let permanent = call.has_flag("permanent");
|
||||
let recursive = call.has_flag("recursive");
|
||||
let force = call.has_flag("force");
|
||||
|
Reference in New Issue
Block a user