diff options
Diffstat (limited to 'src/sys/statvfs.rs')
-rw-r--r-- | src/sys/statvfs.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sys/statvfs.rs b/src/sys/statvfs.rs index fbd0570e..41ca44f2 100644 --- a/src/sys/statvfs.rs +++ b/src/sys/statvfs.rs @@ -57,16 +57,18 @@ libc_bitflags!( /// For more information see the [`statvfs(3)` man pages](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_statvfs.h.html). // FIXME: Replace with repr(transparent) #[repr(C)] +#[derive(Clone, Copy)] +#[allow(missing_debug_implementations)] pub struct Statvfs(libc::statvfs); impl Statvfs { /// get the file system block size - pub fn block_size(&self) -> libc::c_ulong { + pub fn block_size(&self) -> c_ulong { self.0.f_bsize } /// Get the fundamental file system block size - pub fn fragment_size(&self) -> libc::c_ulong { + pub fn fragment_size(&self) -> c_ulong { self.0.f_frsize } @@ -113,7 +115,7 @@ impl Statvfs { } /// Get the maximum filename length - pub fn name_max(&self) -> libc::c_ulong { + pub fn name_max(&self) -> c_ulong { self.0.f_namemax } |