chore: fix clippy (#245)
This commit is contained in:
parent
204421643d
commit
10204c723f
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ pub fn tmpdir() -> TempDir {
|
||||||
let tmpdir = assert_fs::TempDir::new().expect("Couldn't create a temp dir for tests");
|
let tmpdir = assert_fs::TempDir::new().expect("Couldn't create a temp dir for tests");
|
||||||
for file in FILES {
|
for file in FILES {
|
||||||
if *file == BIN_FILE {
|
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 {
|
} else {
|
||||||
tmpdir
|
tmpdir
|
||||||
.child(file)
|
.child(file)
|
||||||
|
@ -68,7 +68,7 @@ pub fn tmpdir() -> TempDir {
|
||||||
if *file == BIN_FILE {
|
if *file == BIN_FILE {
|
||||||
tmpdir
|
tmpdir
|
||||||
.child(format!("{directory}{file}"))
|
.child(format!("{directory}{file}"))
|
||||||
.write_binary(b"bin\0\0123")
|
.write_binary(b"bin\0\x00123")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
} else {
|
} else {
|
||||||
tmpdir
|
tmpdir
|
||||||
|
|
Loading…
Reference in a new issue