clippy: just fix

This commit is contained in:
2026-06-13 09:52:03 +02:00
parent 05cac57f3a
commit 80c50c0db3
2 changed files with 83 additions and 83 deletions
+6 -6
View File
@@ -838,7 +838,7 @@ mod tests {
#[test]
fn parses_unrar_technical_listing() {
let listing = parse_unrar_listing(
r#"
r"
Archive: game.eti
Details: RAR 5, solid
@@ -849,7 +849,7 @@ Details: RAR 5, solid
Name: bin
Type: Directory
"#,
",
)
.expect("listing should parse");
@@ -876,14 +876,14 @@ Details: RAR 5, solid
#[test]
fn rejects_unrar_file_entries_without_crc32() {
let err = parse_unrar_listing(
r#"
r"
Archive: game.eti
Details: RAR 5
Name: bin/payload.bin
Type: File
Size: 123
"#,
",
)
.expect_err("file entries without CRC32 should be rejected");
@@ -893,14 +893,14 @@ Details: RAR 5
#[test]
fn accepts_zero_size_unrar_file_entries_without_crc32() {
let listing = parse_unrar_listing(
r#"
r"
Archive: game.eti
Details: RAR 5
Name: bin/empty.cfg
Type: File
Size: 0
"#,
",
)
.expect("empty file without CRC32 should parse as CRC32 zero");