From 6ae42b4c1e72f9274fc2bbdc86b57a3b7ffd4140 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 7 Aug 2019 07:24:22 -0500 Subject: [PATCH] refactor(parse): Explicit Default --- src/tokens.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tokens.rs b/src/tokens.rs index e91824a43..86e9a823c 100644 --- a/src/tokens.rs +++ b/src/tokens.rs @@ -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,