mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
Use thiserror for error handling with less boilerplate
This commit is contained in:
@@ -34,7 +34,7 @@ impl TokenType {
|
||||
match self {
|
||||
TokenType::Simple(a) => a.appendTo(bit_array, text),
|
||||
TokenType::BinaryShift(a) => a.appendTo(bit_array, text),
|
||||
TokenType::Empty => Err(Exceptions::illegalStateWith(
|
||||
TokenType::Empty => Err(Exceptions::illegal_state_with(
|
||||
"cannot appendTo on Empty final item",
|
||||
)),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user