mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 09:01:04 -05:00
refactor(parse): Explicit Default
This commit is contained in:
parent
750005e971
commit
6ae42b4c1e
1 changed files with 7 additions and 1 deletions
|
@ -6,7 +6,7 @@ pub enum Case {
|
||||||
None,
|
None,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Default, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||||
pub struct ParserBuilder {
|
pub struct ParserBuilder {
|
||||||
ignore_hex: bool,
|
ignore_hex: bool,
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,12 @@ impl ParserBuilder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for ParserBuilder {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self { ignore_hex: false }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct Parser {
|
pub struct Parser {
|
||||||
words_str: regex::Regex,
|
words_str: regex::Regex,
|
||||||
|
|
Loading…
Reference in a new issue