1
0
Fork 0
forked from wry/wry

all: address clippy lints

This commit is contained in:
Julian Orth 2025-11-28 13:32:02 +01:00
parent 0e49b33a7f
commit 669d995771
7 changed files with 10 additions and 31 deletions

View file

@ -61,7 +61,7 @@ fn map(fd: c::c_int, size: usize) -> Result<*const [Cell<u8>], TestError> {
if res == c::MAP_FAILED {
bail!("Could not map memory: {}", OsError::default());
}
Ok(std::slice::from_raw_parts(res as _, size))
Ok(ptr::slice_from_raw_parts(res as _, size))
}
}