Skip to content

Commit

Permalink
style: Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
John Doe committed Nov 3, 2023
1 parent 90f970b commit 9f1909a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hakoniwa/src/seccomp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl Seccomp {
match self.dismatch_action {
SeccompAction::KillProcess => ScmpAction::Allow,
SeccompAction::Log => ScmpAction::Log,
SeccompAction::Allow => ScmpAction::KillProcess
SeccompAction::Allow => ScmpAction::KillProcess,
}
}
}
3 changes: 2 additions & 1 deletion hakoniwa/tests/executor_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ mounts = [
let result = executor
.seccomp_enable()
.seccomp_dismatch_action(SeccompAction::Allow)
.seccomp_syscall_add("write").unwrap()
.seccomp_syscall_add("write")
.unwrap()
.run();
assert_eq!(result.status, ExecutorResultStatus::RestrictedFunction);
assert_eq!(result.exit_code, Some(128 + libc::SIGSYS));
Expand Down

0 comments on commit 9f1909a

Please sign in to comment.