Cleanup formatting
authorAleksey Kladov <aleksey.kladov@gmail.com>
Thu, 12 Apr 2018 06:06:09 +0000 (09:06 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Thu, 12 Apr 2018 06:06:09 +0000 (09:06 +0300)
src/cargo/ops/cargo_install.rs

index 31aba409f53c9c225abfae49638b8d96790541ab..fde665eabf84c61499ee991414787053430871f6 100644 (file)
@@ -229,18 +229,17 @@ fn install_one(
 
     if from_cwd {
         match pkg.manifest().edition() {
-            Edition::Edition2015 =>
-                config.shell().warn("To build the current package use `cargo build`, to install the current package run `cargo install --path .`")?
-            ,
-            Edition::Edition2018 =>
-                bail!(
-                    "To build the current package use `cargo build`, \
-                     to install the current package run `cargo install --path .`, \
-                     otherwise specify a crate to install from \
-                     crates.io, or use --path or --git to \
-                     specify alternate source"
-                )
-            ,
+            Edition::Edition2015 => config.shell().warn(
+                "To build the current package use `cargo build`, \
+                 to install the current package run `cargo install --path .`",
+            )?,
+            Edition::Edition2018 => bail!(
+                "To build the current package use `cargo build`, \
+                 to install the current package run `cargo install --path .`, \
+                 otherwise specify a crate to install from \
+                 crates.io, or use --path or --git to \
+                 specify alternate source"
+            ),
         }
     };