Skip to content

Commit bb5f935

Browse files
committed
try go fix cargo fmt invocation
1 parent 737f0a6 commit bb5f935

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_dev/src/fmt.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ fn exec(
135135
}
136136

137137
fn cargo_fmt(context: &FmtContext, path: &Path) -> Result<bool, CliError> {
138-
let mut args = vec!["+nightly", "fmt", "--all"];
138+
let mut args = vec!["fmt", "--all"];
139139
if context.check {
140140
args.push("--");
141141
args.push("--check");
142142
}
143-
let success = exec(context, "cargo", path, &args)?;
143+
let success = exec(context, "cargo", "+nightly" path, &args)?;
144144

145145
Ok(success)
146146
}

0 commit comments

Comments
 (0)