redox native fixes for unused_must_use

This commit is contained in:
auronandace
2026-02-11 09:58:50 +00:00
parent a3c67e898d
commit aa13343b2e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ pub fn get_mem_stat() -> Result<sys_statvfs::statvfs, Errno> {
let fd = Sys::open(c"/scheme/memory".into(), fcntl::O_PATH, 0)?;
let mut buf = sys_statvfs::statvfs::default();
let res = Sys::fstatvfs(fd, Out::from_mut(&mut buf));
Sys::close(fd);
if let Ok(()) = Sys::close(fd) {}; // TODO handle error
let _ = res?;
return Ok(buf);
}