remove even more needless string conversions

This commit is contained in:
Vukašin Stepanović
2023-02-15 11:25:01 +00:00
parent df8828331d
commit bfcdb397ad
3 changed files with 6 additions and 6 deletions

View File

@@ -755,7 +755,7 @@ fn decodeBase256Segment(
result.append_string(
&encoding::all::ISO_8859_1
.decode(&bytes, encoding::DecoderTrap::Strict)
.map_err(|e| Exceptions::parse(e.to_string()))?,
.map_err(|e| Exceptions::parse(e))?,
);
byteSegments.push(bytes);