From cb93d5bb9dab3c8d932c0626f92d3865b4bb72d1 Mon Sep 17 00:00:00 2001 From: XLor Date: Fri, 6 Oct 2023 14:25:17 +0800 Subject: [PATCH] chore: format --- src/catbox.rs | 2 +- src/main.rs | 2 +- src/syscall.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/catbox.rs b/src/catbox.rs index 55ac40b..bf30f5b 100644 --- a/src/catbox.rs +++ b/src/catbox.rs @@ -4,7 +4,7 @@ use std::path::{Path, PathBuf}; use libc_stdhandle::{stderr, stdin, stdout}; use log::{debug, error, info}; -use nix::libc::{self, freopen, ptrace}; +use nix::libc::{self, freopen}; use nix::mount::{mount, MsFlags}; use nix::sys::ptrace; use nix::sys::resource::{setrlimit, Resource}; diff --git a/src/main.rs b/src/main.rs index 293e495..ef5962d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -214,7 +214,7 @@ fn bootstrap() -> Result<(), CatBoxError> { let mut catbox = cli.resolve()?; let result = match catbox.start() { - Ok(results) => { + Ok(_) => { info!("Running catj finished"); if report { if !json_format { diff --git a/src/syscall.rs b/src/syscall.rs index de74652..b65f1d1 100644 --- a/src/syscall.rs +++ b/src/syscall.rs @@ -4,9 +4,9 @@ use std::ffi::{c_long, c_ulonglong}; use std::fmt::{Debug, Formatter}; use nix::libc::{ - user_regs_struct, SYS_accept, SYS_accept4, SYS_bind, SYS_clone, SYS_clone3, SYS_connect, + user_regs_struct, SYS_accept, SYS_accept4, SYS_bind, SYS_clone, SYS_clone3, SYS_execve, SYS_execveat, SYS_fork, SYS_getpeername, SYS_getsockname, SYS_getsockopt, SYS_listen, - SYS_setsockopt, SYS_shutdown, SYS_socket, SYS_socketpair, SYS_vfork, + SYS_setsockopt, SYS_shutdown, SYS_socketpair, SYS_vfork, }; use nix::unistd::Pid;