Merge pull request #591 from cakebaker/clippy_fix_derivable_impls

clippy: fix warning from `derivable_impls` lint
This commit is contained in:
Sylvestre Ledru
2025-10-31 09:53:53 +01:00
committed by GitHub
+2 -7
View File
@@ -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,
}