From 9f1909a3e7345d9ca05d1c9340950ebfb9052ab3 Mon Sep 17 00:00:00 2001 From: John Doe Date: Fri, 3 Nov 2023 21:57:40 +0800 Subject: [PATCH] style: Fix clippy warnings --- hakoniwa/src/seccomp.rs | 2 +- hakoniwa/tests/executor_test.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hakoniwa/src/seccomp.rs b/hakoniwa/src/seccomp.rs index 1612198..df6d624 100644 --- a/hakoniwa/src/seccomp.rs +++ b/hakoniwa/src/seccomp.rs @@ -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, } } } diff --git a/hakoniwa/tests/executor_test.rs b/hakoniwa/tests/executor_test.rs index cc8f8b2..6ef4ee6 100644 --- a/hakoniwa/tests/executor_test.rs +++ b/hakoniwa/tests/executor_test.rs @@ -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));