summaryrefslogtreecommitdiff
path: root/test/sys/test_epoll.rs
diff options
context:
space:
mode:
authorqupeng <onlyqupeng@gmail.com>2016-12-12 14:02:52 +0800
committerqupeng <onlyqupeng@gmail.com>2016-12-12 14:02:52 +0800
commit8f170ce0c877fd0659e9c2dbad8a6e0eecb984d1 (patch)
tree7b7da1027197ab9f2df907e37e9ed52873a931d5 /test/sys/test_epoll.rs
parentce1e93ef2f3a9d8c411f4a75aa16906e9be82ba7 (diff)
downloadnix-8f170ce0c877fd0659e9c2dbad8a6e0eecb984d1.zip
epoll: improve EpollEvent::empty() by using mem::uninitialized.
Diffstat (limited to 'test/sys/test_epoll.rs')
-rw-r--r--test/sys/test_epoll.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sys/test_epoll.rs b/test/sys/test_epoll.rs
index 965c7d06..f31d874f 100644
--- a/test/sys/test_epoll.rs
+++ b/test/sys/test_epoll.rs
@@ -1,4 +1,4 @@
-use nix::sys::epoll::{EpollCreateFlags, EpollFlags, EpollOp, EpollEvent};
+use nix::sys::epoll::{EpollCreateFlags, EpollOp, EpollEvent};
use nix::sys::epoll::{EPOLLIN, EPOLLERR};
use nix::sys::epoll::{epoll_create1, epoll_ctl};
use nix::{Error, Errno};