diff --git a/src/bin/rustfmt.rs b/src/bin/rustfmt.rs index c886fc7aae66..f0e4f0a78978 100644 --- a/src/bin/rustfmt.rs +++ b/src/bin/rustfmt.rs @@ -73,9 +73,9 @@ impl CliOptions { .map(|c| c == "nightly") .unwrap_or(false); if unstable_features && !rust_nightly { - return Err(FmtError::from(format!( - "Unstable features are only available on Nightly channel" - ))); + return Err(FmtError::from( + "Unstable features are only available on Nightly channel", + )); } else { options.unstable_features = unstable_features; }