From 55221a18b4c58351e9b831dab188503464f0dc06 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 15 Nov 2020 22:53:49 +0100 Subject: [PATCH] change order + remove useless import --- src/uu/rm/src/rm.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/uu/rm/src/rm.rs b/src/uu/rm/src/rm.rs index 868f26860..eaacb9555 100644 --- a/src/uu/rm/src/rm.rs +++ b/src/uu/rm/src/rm.rs @@ -14,7 +14,7 @@ extern crate walkdir; #[macro_use] extern crate uucore; -use clap::{App, Arg, ArgMatches}; +use clap::{App, Arg}; use remove_dir_all::remove_dir_all; use std::collections::VecDeque; use std::fs; @@ -43,15 +43,15 @@ struct Options { static ABOUT: &str = "Remove (unlink) the FILE(s)"; static VERSION: &str = env!("CARGO_PKG_VERSION"); +static OPT_DIR: &str = "dir"; +static OPT_INTERACTIVE: &str = "interactive"; static OPT_FORCE: &str = "force"; +static OPT_NO_PRESERVE_ROOT: &str = "no-preserve-root"; +static OPT_ONE_FILE_SYSTEM: &str = "one-file-system"; +static OPT_PRESERVE_ROOT: &str = "preserve-root"; static OPT_PROMPT: &str = "prompt"; static OPT_PROMPT_MORE: &str = "prompt-more"; -static OPT_INTERACTIVE: &str = "interactive"; -static OPT_ONE_FILE_SYSTEM: &str = "one-file-system"; -static OPT_NO_PRESERVE_ROOT: &str = "no-preserve-root"; -static OPT_PRESERVE_ROOT: &str = "preserve-root"; static OPT_RECURSIVE: &str = "recursive"; -static OPT_DIR: &str = "dir"; static OPT_VERBOSE: &str = "verbose"; static ARG_FILES: &str = "files";