@@ -10,7 +10,6 @@ pub const POLLERR: c_short = 0x008;
pub const POLLHUP: c_short = 0x010;
pub const POLLNVAL: c_short = 0x020;
-
pub type nfds_t = c_ulong;
#[repr(C)]
@@ -730,11 +730,14 @@ impl Pal for Sys {
fd.revents = 0;
if fd.fd >= 0 && flags > 0 {
- if event_file.write(&syscall::Event {
- id: fd.fd as usize,
- flags: flags,
- data: 0,
- }).is_err() {
+ if event_file
+ .write(&syscall::Event {
+ id: fd.fd as usize,
+ flags: flags,
+ data: 0,
+ })
+ .is_err()
+ {
return -1;
}