diff --git a/src/fs/dir_action.rs b/src/fs/dir_action.rs index 26e78d3..ab8ceda 100644 --- a/src/fs/dir_action.rs +++ b/src/fs/dir_action.rs @@ -51,7 +51,7 @@ impl DirAction { match self { Self::AsFile => true, Self::Recurse(o) => o.tree, - _ => false, + Self::List => false, } } } diff --git a/src/main.rs b/src/main.rs index b8d1b21..6730993 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,6 +18,7 @@ #![allow(clippy::non_ascii_literal)] #![allow(clippy::option_if_let_else)] #![allow(clippy::too_many_lines)] +#![allow(clippy::unnested_or_patterns)] // TODO: remove this when we support Rust 1.53.0 #![allow(clippy::unused_self)] #![allow(clippy::upper_case_acronyms)] #![allow(clippy::wildcard_imports)] diff --git a/src/options/parser.rs b/src/options/parser.rs index f43d44e..f2e1d0a 100644 --- a/src/options/parser.rs +++ b/src/options/parser.rs @@ -432,7 +432,7 @@ impl<'a> MatchedFlags<'a> { .filter(|tuple| tuple.1.is_some() && predicate(&tuple.0)) .collect::>(); - if those.len() < 2 { Ok(those.first().cloned().map(|t| t.1.unwrap())) } + if those.len() < 2 { Ok(those.first().copied().map(|t| t.1.unwrap())) } else { Err(OptionsError::Duplicate(those[0].0, those[1].0)) } } else {