all: address clippy lints
This commit is contained in:
parent
0e49b33a7f
commit
669d995771
7 changed files with 10 additions and 31 deletions
|
|
@ -20,7 +20,7 @@ pub fn mmap(
|
|||
Err(OsError::default())
|
||||
} else {
|
||||
Ok(Mmapped {
|
||||
ptr: unsafe { std::slice::from_raw_parts(res.cast(), len) },
|
||||
ptr: ptr::slice_from_raw_parts(res.cast(), len),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue