Skip to content

Commit dc9a0d3

Browse files
committed
Fix clippy error
Unneeded reference in the `Command::new().args()` call. Signed-off-by: Michal Rostecki <[email protected]>
1 parent d6795ae commit dc9a0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const POSSIBLE_BACKENDS: &[&str] = &[
1010
];
1111

1212
fn get_native_arch() -> Result<String> {
13-
let output = Command::new("rustc").args(&["--print", "cfg"]).output()?;
13+
let output = Command::new("rustc").args(["--print", "cfg"]).output()?;
1414
let buf = BufReader::new(output.stdout.as_slice());
1515
for line in buf.lines() {
1616
let line = line?;

0 commit comments

Comments
 (0)