Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Oct 6, 2023
1 parent 3443884 commit cb93d5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/catbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/syscall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cb93d5b

Please sign in to comment.