diff options
Diffstat (limited to 'apps/cassiopeia/src/format/parser.rs')
-rw-r--r-- | apps/cassiopeia/src/format/parser.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/cassiopeia/src/format/parser.rs b/apps/cassiopeia/src/format/parser.rs index d1f0bcdebc68..78433c0f5cec 100644 --- a/apps/cassiopeia/src/format/parser.rs +++ b/apps/cassiopeia/src/format/parser.rs @@ -24,15 +24,6 @@ pub enum LineCfg { Ignore, } -impl LineCfg { - pub(crate) fn valid(&self) -> bool { - match self { - LineCfg::Ignore => false, - _ => true, - } - } -} - pub(crate) fn parse<'l>(lex: LineLexer<'l>) -> LineCfg { use LineCfg::*; use Token as T; @@ -54,7 +45,7 @@ pub(crate) fn parse<'l>(lex: LineLexer<'l>) -> LineCfg { (Invoice(_), LineToken { tt: T::Date, slice }) => Invoice(parse_date(slice)), // Pass empty lines through, - (Empty, _) => Empty, + (empty, _) => empty, // Ignore everything else (which will be filtered) _ => Ignore, |