mirror of
https://github.com/uutils/coreutils
synced 2024-11-05 14:21:32 +00:00
chcon: Remove unused Options.dereference to fix Clippy
This commit is contained in:
parent
447d6f2b61
commit
4a20ef1850
1 changed files with 0 additions and 5 deletions
|
@ -281,7 +281,6 @@ pub fn uu_app() -> App<'static, 'static> {
|
|||
#[derive(Debug)]
|
||||
struct Options {
|
||||
verbose: bool,
|
||||
dereference: bool,
|
||||
preserve_root: bool,
|
||||
recursive_mode: RecursiveMode,
|
||||
affect_symlink_referent: bool,
|
||||
|
@ -331,9 +330,6 @@ fn parse_command_line(config: clap::App, args: impl uucore::Args) -> Result<Opti
|
|||
(RecursiveMode::NotRecursive, !no_dereference)
|
||||
};
|
||||
|
||||
// By default, dereference.
|
||||
let dereference = !matches.is_present(options::dereference::NO_DEREFERENCE);
|
||||
|
||||
// By default, do not preserve root.
|
||||
let preserve_root = matches.is_present(options::preserve_root::PRESERVE_ROOT);
|
||||
|
||||
|
@ -369,7 +365,6 @@ fn parse_command_line(config: clap::App, args: impl uucore::Args) -> Result<Opti
|
|||
|
||||
Ok(Options {
|
||||
verbose,
|
||||
dereference,
|
||||
preserve_root,
|
||||
recursive_mode,
|
||||
affect_symlink_referent,
|
||||
|
|
Loading…
Reference in a new issue