refactor: fix warnings

This commit is contained in:
2021-11-30 09:55:13 +02:00
parent 4c3374de36
commit 4ffbb8c115
30 changed files with 137 additions and 94 deletions
+1 -1
View File
@@ -472,5 +472,5 @@ pub fn sys_mmap(
#[inline(always)]
pub unsafe fn sys_munmap(addr: usize, len: usize) -> Result<(), Errno> {
Errno::from_syscall_unit(unsafe { syscall!(SystemCall::UnmapMemory, argn!(addr), argn!(len)) })
Errno::from_syscall_unit(syscall!(SystemCall::UnmapMemory, argn!(addr), argn!(len)))
}
+1 -2
View File
@@ -274,8 +274,7 @@ impl fmt::Display for FileMode {
choose(self.contains(Self::OTHER_READ), 'r', '-'),
choose(self.contains(Self::OTHER_WRITE), 'w', '-'),
choose(self.contains(Self::OTHER_EXEC), 'x', '-'),
);
Ok(())
)
}
}