Skip to content

Commit efbf19b

Browse files
committed
fix: remove needless borrows in test args
1 parent aa1d0d5 commit efbf19b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

generator/tests/readme_update.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Some other content here.
3636

3737
// Run generator
3838
let output = Command::new("cargo")
39-
.args(&["run", "--quiet", "--", "--dir", temp_path.to_str().unwrap()])
39+
.args(["run", "--quiet", "--", "--dir", temp_path.to_str().unwrap()])
4040
.current_dir(env!("CARGO_MANIFEST_DIR"))
4141
.output()
4242
.expect("Failed to execute generator");
@@ -149,7 +149,7 @@ Content after
149149
fs::write(temp_path.join("README.md"), test_readme).unwrap();
150150

151151
let output = Command::new("cargo")
152-
.args(&["run", "--quiet", "--", "--dir", temp_path.to_str().unwrap()])
152+
.args(["run", "--quiet", "--", "--dir", temp_path.to_str().unwrap()])
153153
.current_dir(env!("CARGO_MANIFEST_DIR"))
154154
.output()
155155
.expect("Failed to execute generator");
@@ -196,7 +196,7 @@ End of file.
196196
fs::write(temp_path.join("README.md"), test_readme).unwrap();
197197

198198
let output = Command::new("cargo")
199-
.args(&["run", "--quiet", "--", "--dir", temp_path.to_str().unwrap()])
199+
.args(["run", "--quiet", "--", "--dir", temp_path.to_str().unwrap()])
200200
.current_dir(env!("CARGO_MANIFEST_DIR"))
201201
.output()
202202
.expect("Failed to execute generator");

0 commit comments

Comments
 (0)