Cleaned up a few panic!()s

This commit is contained in:
2023-07-28 09:36:25 -07:00
parent 8fef5702b4
commit be043af4f0
7 changed files with 14 additions and 14 deletions

View File

@ -28,7 +28,7 @@ fn push_token(g: &mut VecDeque<Token>, t: Option<Token>, stop_i: usize) {
Token::Group(_,_)
| Token::Container(_)
=> panic!()
=> unreachable!()
};

View File

@ -96,7 +96,7 @@ impl Token {
| Token::GroupStart(_)
| Token::GroupEnd(_)
| Token::Group(_, _)
=> panic!()
=> panic!("This token cannot be converted to an expression")
};
}