mirror of
https://github.com/rm-dr/daisy
synced 2025-08-02 01:34:50 -07:00
Cleaned up a few panic!()s
This commit is contained in:
@ -28,7 +28,7 @@ fn push_token(g: &mut VecDeque<Token>, t: Option<Token>, stop_i: usize) {
|
||||
|
||||
Token::Group(_,_)
|
||||
| Token::Container(_)
|
||||
=> panic!()
|
||||
=> unreachable!()
|
||||
};
|
||||
|
||||
|
||||
|
@ -96,7 +96,7 @@ impl Token {
|
||||
| Token::GroupStart(_)
|
||||
| Token::GroupEnd(_)
|
||||
| Token::Group(_, _)
|
||||
=> panic!()
|
||||
=> panic!("This token cannot be converted to an expression")
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user