]> git.lizzy.rs Git - rust.git/commitdiff
Remove unnecessary format!() call
authortopecongiro <seuchida@gmail.com>
Sun, 5 Nov 2017 05:03:43 +0000 (14:03 +0900)
committertopecongiro <seuchida@gmail.com>
Mon, 6 Nov 2017 04:52:25 +0000 (13:52 +0900)
src/bin/rustfmt.rs

index c886fc7aae664076683c06748518c0b6933df565..f0e4f0a789780048afdb37099de2b4315c894483 100644 (file)
@@ -73,9 +73,9 @@ fn from_matches(matches: &Matches) -> FmtResult<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;
         }