remove more needless String conversions

This commit is contained in:
Vukašin Stepanović
2023-02-15 11:18:56 +00:00
parent 528ddea41c
commit df8828331d
4 changed files with 6 additions and 10 deletions

View File

@@ -31,9 +31,9 @@ impl TokenType {
match self {
TokenType::Simple(a) => a.appendTo(bit_array, text),
TokenType::BinaryShift(a) => a.appendTo(bit_array, text),
TokenType::Empty => Err(Exceptions::illegalState(String::from(
TokenType::Empty => Err(Exceptions::illegalState(
"cannot appendTo on Empty final item",
))),
)),
}
}
}