From fcf3533a37637ccaf751edb1511489aa51d598aa Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Sat, 6 Apr 2024 00:29:53 +0200 Subject: [PATCH] improve test --- tests/malformed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/malformed.rs b/tests/malformed.rs index c0cc057..045204b 100644 --- a/tests/malformed.rs +++ b/tests/malformed.rs @@ -478,7 +478,7 @@ fn invalid_num_dir_sectors_issue_52() { // update the header and set num_dir_sectors = 1 instead of 2 let mut cursor = comp.into_inner(); cursor.seek(SeekFrom::Start(40)).unwrap(); - cursor.write_all(&[0x01, 0x00, 0x00, 0x00]).unwrap(); + cursor.write_u32::(1).unwrap(); cursor.flush().unwrap(); // Read the file back in.