1
0
mirror of https://github.com/containers/youki synced 2024-11-23 17:32:15 +01:00

clippy happy

This commit is contained in:
yihuaf 2021-09-26 02:40:01 +02:00
parent cdd3d7588b
commit e20bb9982a

@ -365,9 +365,7 @@ pub fn initialize_seccomp(seccomp: &LinuxSeccomp) -> Result<Option<io::RawFd>> {
.syscalls()
.iter()
.flatten()
.fold(false, |ret, syscall| {
ret || syscall.action() == LinuxSeccompAction::ScmpActNotify
});
.any(|syscall| syscall.action() == LinuxSeccompAction::ScmpActNotify);
let fd = if is_seccomp_notify {
ctx.notify_fd().context("failed to get seccomp notify fd")?
@ -521,7 +519,6 @@ mod tests {
}
}
nix::unistd::ForkResult::Child => {
let _ = prctl::set_no_new_privileges(true);
let _ = prctl::set_no_new_privileges(true);
let fd = initialize_seccomp(&seccomp_profile)?;