Jeremy Soller 6 سال پیش
والد
کامیت
d6a1796122
2فایلهای تغییر یافته به همراه8 افزوده شده و 6 حذف شده
  1. 0 1
      src/header/poll/mod.rs
  2. 8 5
      src/platform/redox/mod.rs

+ 0 - 1
src/header/poll/mod.rs

@@ -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)]

+ 8 - 5
src/platform/redox/mod.rs

@@ -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;
                 }
             }