mirror of
https://github.com/uutils/findutils.git
synced 2026-06-10 15:48:30 -07:00
Merge pull request #591 from cakebaker/clippy_fix_derivable_impls
clippy: fix warning from `derivable_impls` lint
This commit is contained in:
@@ -30,8 +30,9 @@ impl fmt::Display for ParseRegexTypeError {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum RegexType {
|
||||
#[default]
|
||||
Emacs,
|
||||
Grep,
|
||||
PosixBasic,
|
||||
@@ -74,12 +75,6 @@ impl FromStr for RegexType {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for RegexType {
|
||||
fn default() -> Self {
|
||||
Self::Emacs
|
||||
}
|
||||
}
|
||||
|
||||
pub struct RegexMatcher {
|
||||
regex: Regex,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user