From 14e5c493e5521db1c7eb400c80be3921a3b96d4f Mon Sep 17 00:00:00 2001 From: Brian Caswell Date: Thu, 5 Oct 2023 17:22:23 -0400 Subject: [PATCH] address clippy issue from 1.73.0 --- src/disk_usage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/disk_usage.rs b/src/disk_usage.rs index 29d8265..74e902f 100644 --- a/src/disk_usage.rs +++ b/src/disk_usage.rs @@ -128,7 +128,7 @@ fn disk_usage(path: &Path) -> Result { unsafe { let ret = libc::statfs64(cstr.as_ptr(), &mut statfs); if ret < 0 { - return Err(Error::Disk(std::io::Error::last_os_error()))?; + Err(Error::Disk(std::io::Error::last_os_error()))?; } }