]> OzVa Git service - ozva-cloud/commitdiff
chore: fix clippy (#245)
authorsigoden <sigoden@gmail.com>
Sat, 15 Jul 2023 08:27:13 +0000 (16:27 +0800)
committerGitHub <noreply@github.com>
Sat, 15 Jul 2023 08:27:13 +0000 (16:27 +0800)
tests/fixtures.rs

index b855ba65cdf7dca82d8b8b43074b1c5561345653..f191bfbcf0a6a4d35ddf73ed46c64040ee61e912 100644 (file)
@@ -46,7 +46,7 @@ pub fn tmpdir() -> TempDir {
     let tmpdir = assert_fs::TempDir::new().expect("Couldn't create a temp dir for tests");
     for file in FILES {
         if *file == BIN_FILE {
-            tmpdir.child(file).write_binary(b"bin\0\0123").unwrap();
+            tmpdir.child(file).write_binary(b"bin\0\x00123").unwrap();
         } else {
             tmpdir
                 .child(file)
@@ -68,7 +68,7 @@ pub fn tmpdir() -> TempDir {
                 if *file == BIN_FILE {
                     tmpdir
                         .child(format!("{directory}{file}"))
-                        .write_binary(b"bin\0\0123")
+                        .write_binary(b"bin\0\x00123")
                         .unwrap();
                 } else {
                     tmpdir