mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
remove even more needless string conversions
This commit is contained in:
@@ -164,7 +164,7 @@ fn get_encoded_data(corrected_bits: &[bool]) -> Result<String, Exceptions> {
|
||||
result.push_str(
|
||||
&encdr
|
||||
.decode(&decoded_bytes, encoding::DecoderTrap::Strict)
|
||||
.map_err(|a| Exceptions::illegalState(a.to_string()))?,
|
||||
.map_err(|a| Exceptions::illegalState(a))?,
|
||||
);
|
||||
|
||||
decoded_bytes.clear();
|
||||
|
||||
Reference in New Issue
Block a user