summaryrefslogtreecommitdiff
path: root/src/sys/statfs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/statfs.rs')
-rw-r--r--src/sys/statfs.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sys/statfs.rs b/src/sys/statfs.rs
index 6d4fafe9..e7ffae5e 100644
--- a/src/sys/statfs.rs
+++ b/src/sys/statfs.rs
@@ -6,9 +6,7 @@ use libc;
pub fn statfs<P: ?Sized + NixPath>(path: &P, stat: &mut libc::statfs) -> Result<()> {
unsafe {
Errno::clear();
- let res = try!(
- path.with_nix_path(|path| libc::statfs(path.as_ptr(), stat))
- );
+ let res = path.with_nix_path(|path| libc::statfs(path.as_ptr(), stat))?;
Errno::result(res).map(drop)
}