Skip to content

Commit 24d561f

Browse files
committed
Use rustfmt version from rust-toolchain
1 parent 8b84a76 commit 24d561f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_dev/src/fmt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn exec(
149149
}
150150

151151
fn cargo_fmt(context: &FmtContext, path: &Path) -> Result<bool, CliError> {
152-
let mut args = vec!["+nightly", "fmt", "--all"];
152+
let mut args = vec!["fmt", "--all"];
153153
if context.check {
154154
args.push("--");
155155
args.push("--check");
@@ -162,7 +162,7 @@ fn cargo_fmt(context: &FmtContext, path: &Path) -> Result<bool, CliError> {
162162
fn rustfmt_test(context: &FmtContext) -> Result<(), CliError> {
163163
let program = "rustfmt";
164164
let dir = std::env::current_dir()?;
165-
let args = &["+nightly", "--version"];
165+
let args = &["--version"];
166166

167167
if context.verbose {
168168
println!("{}", format_command(&program, &dir, args));
@@ -186,7 +186,7 @@ fn rustfmt_test(context: &FmtContext) -> Result<(), CliError> {
186186
}
187187

188188
fn rustfmt(context: &FmtContext, path: &Path) -> Result<bool, CliError> {
189-
let mut args = vec!["+nightly".as_ref(), path.as_os_str()];
189+
let mut args = vec![path.as_os_str()];
190190
if context.check {
191191
args.push("--check".as_ref());
192192
}

0 commit comments

Comments
 (0)