redox unused_mut follow-up

This commit is contained in:
auronandace
2026-02-08 09:14:05 +00:00
parent 64f18ca89a
commit 48224dc5ff
6 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ impl Dev {
Ok(res as c_int)
}
unsafe fn write_ioctl<T: IoctlData>(&self, mut buf: IoctlBuffer, func: u64) -> Result<c_int> {
unsafe fn write_ioctl<T: IoctlData>(&self, buf: IoctlBuffer, func: u64) -> Result<c_int> {
let data = unsafe { buf.read::<T>() }?;
let wire = unsafe { data.write() };
let res = redox_rt::sys::sys_call_wo(