Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit 776bcf2

Browse files
committed
fix clippy
1 parent 087fe69 commit 776bcf2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/sandbox/src/build_command.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn build_compile_command(input_file: &Path, output_dir: &Path) -> Command {
3838

3939
let execution_cmd = build_execution_command();
4040

41-
cmd.arg(&DOCKER_CONTAINER_NAME).args(&execution_cmd);
41+
cmd.arg(DOCKER_CONTAINER_NAME).args(&execution_cmd);
4242

4343
log::debug!("Compilation command is {:?}", cmd);
4444

@@ -50,7 +50,7 @@ pub fn build_testing_command(input_file: &Path) -> Command {
5050

5151
let execution_cmd = testing_execution_command();
5252

53-
cmd.arg(&DOCKER_CONTAINER_NAME).args(&execution_cmd);
53+
cmd.arg(DOCKER_CONTAINER_NAME).args(&execution_cmd);
5454

5555
log::debug!("Testing command is {:?}", cmd);
5656

@@ -62,7 +62,7 @@ pub fn build_formatting_command(input_file: &Path) -> Command {
6262

6363
let execution_cmd = formatting_execution_command();
6464

65-
cmd.arg(&DOCKER_CONTAINER_NAME).args(&execution_cmd);
65+
cmd.arg(DOCKER_CONTAINER_NAME).args(&execution_cmd);
6666

6767
log::debug!("Formatting command is {:?}", cmd);
6868

@@ -116,7 +116,7 @@ fn build_basic_secure_docker_command() -> Command {
116116
);
117117

118118
if cfg!(feature = "fork-bomb-prevention") {
119-
cmd.args(&["--pids-limit", "512"]);
119+
cmd.args(["--pids-limit", "512"]);
120120
}
121121

122122
cmd.kill_on_drop(true);

0 commit comments

Comments
 (0)