Skip to content

Commit 24bf493

Browse files
committed
Fix warnings related to Rust 2021.
1 parent 2bed115 commit 24bf493

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/lzma.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ fn assert_round_trip_with_options(
8080
lzma_rs::compress::UnpackedSize::WriteToHeader(None),
8181
lzma_rs::decompress::UnpackedSize::ReadHeaderButUseProvided(Some(_)),
8282
) => {}
83-
_ => panic!(error),
83+
_ => panic!("{}", error),
8484
}
8585
} else {
86-
panic!(error);
86+
panic!("{}", error);
8787
}
8888
}
8989

@@ -343,11 +343,13 @@ fn memlimit() {
343343
let error = stream.write_all(&compressed).unwrap_err();
344344
assert!(
345345
error.to_string().contains("exceeded memory limit of 0"),
346+
"{}",
346347
error.to_string()
347348
);
348349
let error = stream.finish().unwrap_err();
349350
assert!(
350351
error.to_string().contains("previous write error"),
352+
"{}",
351353
error.to_string()
352354
);
353355
}

0 commit comments

Comments
 (0)