mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-17 09:35:11 +02:00
refactor(parse): Explicit Default
This commit is contained in:
+7
-1
@@ -6,7 +6,7 @@ pub enum Case {
|
||||
None,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct ParserBuilder {
|
||||
ignore_hex: bool,
|
||||
}
|
||||
@@ -33,6 +33,12 @@ impl ParserBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for ParserBuilder {
|
||||
fn default() -> Self {
|
||||
Self { ignore_hex: false }
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Parser {
|
||||
words_str: regex::Regex,
|
||||
|
||||
Reference in New Issue
Block a user