diff --git a/project/src/parser.rs b/project/src/parser.rs index 2dadcb9..6e36c62 100644 --- a/project/src/parser.rs +++ b/project/src/parser.rs @@ -124,7 +124,7 @@ impl Parser { // Switching based on Mode match self.mode { ParserModes::None => self.none(line), - ParserModes::Debit => self.transaction(ParserModes::Credit, line), + ParserModes::Debit => self.transaction(ParserModes::Debit, line), ParserModes::Credit => self.transaction(ParserModes::Credit, line), } }