Skip to content

Commit

Permalink
refactor(parse): Explicit Default
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 7, 2019
1 parent 750005e commit 6ae42b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand All @@ -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,
Expand Down

0 comments on commit 6ae42b4

Please sign in to comment.