Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
baseplate-admin committed Apr 30, 2024
1 parent 95695ae commit 89e92e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ fn svg_to_base64(
.unwrap();
if svg_data.starts_with(&[0x1f, 0x8b]) {
svg_data = resvg::usvg::decompress_svgz(&svg_data)
.map_err(|e| e.to_string())
.map_err(|_| "can't decompress the svg file")
.unwrap();
};
svg_string = std::str::from_utf8(&svg_data).unwrap().to_owned();
Expand Down

0 comments on commit 89e92e5

Please sign in to comment.