all: remove unnecessary mem:: prefix
This commit is contained in:
parent
c00ef63afe
commit
1e45a243de
22 changed files with 61 additions and 76 deletions
|
|
@ -1,6 +1,5 @@
|
|||
use {
|
||||
crate::forker::ForkerError,
|
||||
std::mem,
|
||||
uapi::{c, OwnedFd},
|
||||
};
|
||||
|
||||
|
|
@ -41,7 +40,7 @@ pub fn fork_with_pidfd(pidfd_for_child: bool) -> Result<Forked, ForkerError> {
|
|||
let pid = c::syscall(
|
||||
c::SYS_clone3,
|
||||
&mut args as *const _ as usize,
|
||||
mem::size_of::<clone_args>(),
|
||||
size_of::<clone_args>(),
|
||||
);
|
||||
if let Err(e) = uapi::map_err!(pid) {
|
||||
return Err(ForkerError::Fork(e.into()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue