Remove unneeded scope

This commit is contained in:
Matthias Beyer 2016-05-14 19:38:22 +02:00
parent a26a0645bd
commit a56f000e3e

View file

@ -1110,10 +1110,8 @@ fn has_imag_version_in_main_section(t: &Table) -> bool {
sec.get("version")
.and_then(|v| {
match *v {
Value::String(ref s) => {
Some(Version::parse(&s[..]).is_ok())
},
_ => Some(false),
Value::String(ref s) => Some(Version::parse(&s[..]).is_ok()),
_ => Some(false),
}
})
.unwrap_or(false)