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,9 +1110,7 @@ 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())
},
Value::String(ref s) => Some(Version::parse(&s[..]).is_ok()),
_ => Some(false),
}
})