Skip to content

Commit

Permalink
Fix invalid Clippy suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
gendx committed Dec 21, 2019
1 parent da11ca8 commit 2c15e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lzma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn decompress_short_header() {
assert_eq!(
format!(
"{:?}",
lzma_rs::lzma_decompress(&mut b"", &mut decomp).unwrap_err()
lzma_rs::lzma_decompress(&mut (b"" as &[u8]), &mut decomp).unwrap_err()
),
String::from("LZMAError(\"LZMA header too short: failed to fill whole buffer\")")
)
Expand Down

0 comments on commit 2c15e26

Please sign in to comment.