diff options
author | qupeng <onlyqupeng@gmail.com> | 2016-12-12 14:02:52 +0800 |
---|---|---|
committer | qupeng <onlyqupeng@gmail.com> | 2016-12-12 14:02:52 +0800 |
commit | 8f170ce0c877fd0659e9c2dbad8a6e0eecb984d1 (patch) | |
tree | 7b7da1027197ab9f2df907e37e9ed52873a931d5 /test/sys/test_epoll.rs | |
parent | ce1e93ef2f3a9d8c411f4a75aa16906e9be82ba7 (diff) | |
download | nix-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.rs | 2 |
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}; |