Skip to content

Commit 0f7bf4d

Browse files
authored
Merge pull request #591 from cakebaker/clippy_fix_derivable_impls
clippy: fix warning from `derivable_impls` lint
2 parents 8164791 + df2d84d commit 0f7bf4d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/find/matchers/regex.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ impl fmt::Display for ParseRegexTypeError {
3030
}
3131
}
3232

33-
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
33+
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
3434
pub enum RegexType {
35+
#[default]
3536
Emacs,
3637
Grep,
3738
PosixBasic,
@@ -74,12 +75,6 @@ impl FromStr for RegexType {
7475
}
7576
}
7677

77-
impl Default for RegexType {
78-
fn default() -> Self {
79-
Self::Emacs
80-
}
81-
}
82-
8378
pub struct RegexMatcher {
8479
regex: Regex,
8580
}

0 commit comments

Comments
 (0)