clippy: just fix
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user