diff options
Diffstat (limited to 'src/sys/stat.rs')
-rw-r--r-- | src/sys/stat.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/sys/stat.rs b/src/sys/stat.rs index aee47a67..2a34d282 100644 --- a/src/sys/stat.rs +++ b/src/sys/stat.rs @@ -4,7 +4,7 @@ pub use libc::stat as FileStat; use {Error, Result, NixPath, from_ffi}; use errno::Errno; use libc::mode_t; -use std::{fmt, mem}; +use std::mem; use std::os::unix::io::RawFd; mod ffi { @@ -50,12 +50,6 @@ bitflags! { } } -impl fmt::Debug for SFlag { - fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - write!(fmt, "SFlag {{ bits: {} }}", self.bits()) - } -} - pub fn mknod<P: ?Sized + NixPath>(path: &P, kind: SFlag, perm: Mode, dev: dev_t) -> Result<()> { let res = try!(path.with_nix_path(|cstr| { unsafe { |