mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +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)]
|
#[derive(Debug)]
|
||||||
struct Options {
|
struct Options {
|
||||||
verbose: bool,
|
verbose: bool,
|
||||||
dereference: bool,
|
|
||||||
preserve_root: bool,
|
preserve_root: bool,
|
||||||
recursive_mode: RecursiveMode,
|
recursive_mode: RecursiveMode,
|
||||||
affect_symlink_referent: bool,
|
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)
|
(RecursiveMode::NotRecursive, !no_dereference)
|
||||||
};
|
};
|
||||||
|
|
||||||
// By default, dereference.
|
|
||||||
let dereference = !matches.is_present(options::dereference::NO_DEREFERENCE);
|
|
||||||
|
|
||||||
// By default, do not preserve root.
|
// By default, do not preserve root.
|
||||||
let preserve_root = matches.is_present(options::preserve_root::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 {
|
Ok(Options {
|
||||||
verbose,
|
verbose,
|
||||||
dereference,
|
|
||||||
preserve_root,
|
preserve_root,
|
||||||
recursive_mode,
|
recursive_mode,
|
||||||
affect_symlink_referent,
|
affect_symlink_referent,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue