Skip to content

Commit

Permalink
fix clippy x3
Browse files Browse the repository at this point in the history
  • Loading branch information
headshog committed May 23, 2024
1 parent 5e6ec8c commit 75d4836
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion casr/src/bin/casr-core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ fn analyze_coredump(
};

if report.proc_cmdline.is_empty() {
report.proc_cmdline = run_line.clone();
report.proc_cmdline.clone_from(&run_line)
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions casr/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4748,7 +4748,7 @@ fn test_casr_js() {
};

let output = Command::new(*EXE_CASR_JS.read().unwrap())
.args(["--stdout", "--", &node_path.to_str().unwrap(), &test_path])
.args(["--stdout", "--", (node_path.to_str().unwrap()), &test_path])
.output()
.expect("failed to start casr-js");

Expand Down Expand Up @@ -4813,7 +4813,7 @@ fn test_casr_js_jsfuzz() {
.args([
"--stdout",
"--",
&jsfuzz_path.to_str().unwrap(),
(jsfuzz_path.to_str().unwrap()),
&paths[0],
&paths[1],
])
Expand Down Expand Up @@ -4881,7 +4881,7 @@ fn test_casr_js_jazzer() {
.args([
"--stdout",
"--",
&npx_path.to_str().unwrap(),
(npx_path.to_str().unwrap()),
"jazzer",
&paths[0],
&paths[1],
Expand Down Expand Up @@ -5689,7 +5689,7 @@ fn test_casr_csharp() {
.args([
"--stdout",
"--",
&dotnet_path.to_str().unwrap(),
(dotnet_path.to_str().unwrap()),
"run",
"--project",
&paths[4],
Expand Down Expand Up @@ -5864,7 +5864,7 @@ fn test_casr_afl_csharp_ignore_cmd() {
"-o",
&paths[1],
"--",
&dotnet_path.to_str().unwrap(),
(dotnet_path.to_str().unwrap()),
"run",
"--no-build",
"--project",
Expand Down

0 comments on commit 75d4836

Please sign in to comment.