diff options
author | Corey Richardson <corey@octayn.net> | 2015-07-05 07:44:09 -0400 |
---|---|---|
committer | Paul Osborne <Paul.Osborne@digi.com> | 2015-08-12 19:29:21 -0500 |
commit | bd103307f12c14487c1b265bccb1420d0ef915ad (patch) | |
tree | bf91a95b2bcc8c0c58b52fe7fb4b554090e5c3c9 /src/sys/event.rs | |
parent | aabe0828a04002a19134827cba64d9efcda4fc35 (diff) | |
download | nix-bd103307f12c14487c1b265bccb1420d0ef915ad.zip |
remove osx-specific Debug impl
Diffstat (limited to 'src/sys/event.rs')
-rw-r--r-- | src/sys/event.rs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/sys/event.rs b/src/sys/event.rs index 62be0af2..e4297c04 100644 --- a/src/sys/event.rs +++ b/src/sys/event.rs @@ -4,7 +4,6 @@ use {Error, Result}; use errno::Errno; use libc::{timespec, time_t, c_int, c_long, uintptr_t}; -use std::fmt; use std::os::unix::io::RawFd; pub use self::ffi::kevent as KEvent; @@ -75,40 +74,6 @@ bitflags!( } ); -impl fmt::Debug for EventFlag { - fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - let mut one = false; - let flags = [ - (EV_ADD, "EV_ADD"), - (EV_DELETE, "EV_DELETE"), - (EV_ENABLE, "EV_ENABLE"), - (EV_DISABLE, "EV_DISABLE"), - (EV_RECEIPT, "EV_RECEIPT"), - (EV_ONESHOT, "EV_ONESHOT"), - (EV_CLEAR, "EV_CLEAR"), - (EV_DISPATCH, "EV_DISPATCH"), - (EV_SYSFLAGS, "EV_SYSFLAGS"), - (EV_FLAG0, "EV_FLAG0"), - (EV_FLAG1, "EV_FLAG1"), - (EV_EOF, "EV_EOF")]; - - for &(flag, msg) in flags.iter() { - if self.contains(flag) { - if one { try!(write!(fmt, " | ")) } - try!(write!(fmt, "{}", msg)); - - one = true - } - } - - if !one { - try!(write!(fmt, "<None>")); - } - - Ok(()) - } -} - bitflags!( flags FilterFlag: u32 { const NOTE_TRIGGER = 0x01000000, |