apply clippy suggestions
authorbrotzeit <brotzeitmacher@gmail.com>
Tue, 6 Feb 2018 21:49:50 +0000 (22:49 +0100)
committerbrotzeit <brotzeitmacher@gmail.com>
Tue, 6 Feb 2018 21:49:50 +0000 (22:49 +0100)
src/cargo/ops/registry.rs

index 530519f60156613d4cb53258adcf97232ef7b484..e4f32f6cdbf25abddafc7db599958dfd4ebe83e0 100644 (file)
@@ -220,7 +220,7 @@ fn transmit(config: &Config,
 
             Ok(())
         },
-        Err(e) => Err(e.into()),
+        Err(e) => Err(e),
     }
 }
 
@@ -437,7 +437,7 @@ pub fn modify_owners(config: &Config, opts: &OwnersOptions) -> CargoResult<()> {
                 (Some(name), Some(email)) => println!(" ({} <{}>)", name, email),
                 (Some(s), None) |
                 (None, Some(s)) => println!(" ({})", s),
-                (None, None) => println!(""),
+                (None, None) => println!(),
             }
         }
     }