Skip to content

Commit 4d5e656

Browse files
committed
refactor
- try to avoid warnings when compiled on Windows
1 parent 61174e5 commit 4d5e656

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/tools/tests/umask.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
use std::fs::File;
2-
use std::io::{BufRead, BufReader};
3-
4-
use bstr::ByteSlice;
5-
61
#[test]
72
#[cfg(unix)]
83
#[cfg_attr(not(target_os = "linux"), ignore = "The test itself uses /proc")]
94
fn umask() {
5+
use std::fs::File;
6+
use std::io::{BufRead, BufReader};
7+
8+
use bstr::ByteSlice;
109
// Check against the umask obtained via a less portable but also completely safe method.
1110
let less_portable = BufReader::new(File::open("/proc/self/status").expect("can open"))
1211
.split(b'\n')

0 commit comments

Comments
 (0)