Skip to content

Commit 6d75e6e

Browse files
committed
Clippy
1 parent b051e6a commit 6d75e6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/on_unix.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ mod to_string {
9393
// We're gonna be mucking around with setuid files, so exercise a little bit of caution
9494
std::fs::set_permissions(tmp_dir.path(), Permissions::from_mode(0o700)).unwrap();
9595
let f = &tmp_dir.path().join("f");
96-
std::fs::write(f, &[0]).unwrap();
97-
std::fs::set_permissions(f, Permissions::from_mode(0)).unwrap();
96+
std::fs::write(f, [0]).unwrap();
97+
std::fs::set_permissions(f, Permissions::from_mode(0o0)).unwrap();
9898
let chmod = Command::new("chmod").arg(chmod_to).arg(f).output().unwrap();
9999
println!("chmod {:#?}", chmod);
100100
assert_eq!(to_string(file_mode(f)), expect_mode);

0 commit comments

Comments
 (0)