diff --git a/src/cargo/lib.rs b/src/cargo/lib.rs
index 455ffd423..f63cd57cd 100755
--- a/src/cargo/lib.rs
+++ b/src/cargo/lib.rs
@@ -77,15 +77,12 @@ impl fmt::Display for VersionInfo {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "cargo {}.{}.{}",
self.major, self.minor, self.patch)?;
- match self.cfg_info.as_ref().map(|ci| &ci.release_channel) {
- Some(channel) => {
- if channel != "stable" {
- write!(f, "-{}", channel)?;
- let empty = String::from("");
- write!(f, "{}", self.pre_release.as_ref().unwrap_or(&empty))?;
- }
- },
- None => (),
+ if let Some(channel) = self.cfg_info.as_ref().map(|ci| &ci.release_channel) {
+ if channel != "stable" {
+ write!(f, "-{}", channel)?;
+ let empty = String::from("");
+ write!(f, "{}", self.pre_release.as_ref().unwrap_or(&empty))?;
+ }
};
if let Some(ref cfg) = self.cfg_info {
diff --git a/src/cargo/ops/cargo_rustc/fingerprint.rs b/src/cargo/ops/cargo_rustc/fingerprint.rs
index a96a26bb0..9ada0fb74 100644
--- a/src/cargo/ops/cargo_rustc/fingerprint.rs
+++ b/src/cargo/ops/cargo_rustc/fingerprint.rs
@@ -583,16 +583,13 @@ pub fn parse_dep_info(dep_info: &Path) -> CargoResult