diff options
Diffstat (limited to 'src/args.rs')
-rw-r--r-- | src/args.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/args.rs b/src/args.rs index 5186373..da1ff19 100644 --- a/src/args.rs +++ b/src/args.rs @@ -1,5 +1,3 @@ -use clap; - use crate::colors; pub struct CommandLineOptions { @@ -28,7 +26,7 @@ pub fn parse() -> CommandLineOptions { let shell = matches .value_of("prompt-escape") - .map(|shell| colors::ShellType::from_str(shell)) + .map(colors::ShellType::from_str) .unwrap_or(colors::ShellType::Unknown); let error_code = matches .value_of("error-code") |