Skip to content

Commit

Permalink
Fix macOS tests
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull committed Sep 2, 2023
1 parent ad5b7be commit 82a4d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn mk_bin(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> {
let bin = dir.join(path).with_extension(extension);

#[cfg(any(target_os = "macos", target_os = "linux"))]
let mode = rustix::fs::Mode::XUSR.bits();
let mode = rustix::fs::Mode::XUSR.bits() as u32;

Check failure on line 31 in tests/basic.rs

View workflow job for this annotation

GitHub Actions / Clippy [Linter] (ubuntu-latest)

casting to the same type is unnecessary (`u32` -> `u32`)
let mode = 0o666 | mode;
fs::OpenOptions::new()
.write(true)
Expand Down

0 comments on commit 82a4d12

Please sign in to comment.