Fix formatting of new test

This commit is contained in:
Mahmoud Al-Qudsi 2024-03-09 22:06:33 -06:00
parent 4e95a3713e
commit 7c173c4b45

View file

@ -10,7 +10,10 @@ fn test_fd_cloexec() {
let file = File::create("test_file_for_fd_cloexec").unwrap();
let fd = file.as_raw_fd();
unsafe {
assert_eq!(libc::fcntl(fd, libc::F_GETFD) & libc::FD_CLOEXEC, libc::FD_CLOEXEC);
assert_eq!(
libc::fcntl(fd, libc::F_GETFD) & libc::FD_CLOEXEC,
libc::FD_CLOEXEC
);
}
let _ = std::fs::remove_file("test_file_for_fd_cloexec");
let _ = std::fs::remove_file("test_file_for_fd_cloexec");
}