Skip to content

Commit 715b9af

Browse files
author
Joseph Rafael Ferrer
committed
Fix CI 3
1 parent 5e38b97 commit 715b9af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tree/tests/tree-tests-umask.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ fn test_chmod_equals() {
240240
chmod_test(&[&opts, f], "", "", 0);
241241

242242
let perm = fs::metadata(f).unwrap().permissions();
243-
let actual = perm.mode() & !libc::S_IFMT; // Mask out the file type
243+
let actual = perm.mode() & !(libc::S_IFMT as u32); // Mask out the file type
244244
assert_eq!(actual, expected);
245245
}
246246
}
@@ -252,7 +252,7 @@ fn test_chmod_equals() {
252252
chmod_test(&["a=,u=rwx,=u", f], "", "", 0);
253253

254254
let perm = fs::metadata(f).unwrap().permissions();
255-
let actual = perm.mode() & !libc::S_IFMT;
255+
let actual = perm.mode() & !(libc::S_IFMT as u32);
256256
assert_eq!(actual, 0o750);
257257

258258
// Revert umask

0 commit comments

Comments
 (0)