From feeca8a724f59aa2ce343104bb7133defa7c1bc7 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Sun, 5 Nov 2017 14:03:43 +0900 Subject: [PATCH] Remove unnecessary format!() call --- src/bin/rustfmt.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }