Remove unneeded scope
This commit is contained in:
parent
a26a0645bd
commit
a56f000e3e
1 changed files with 2 additions and 4 deletions
|
@ -1110,9 +1110,7 @@ fn has_imag_version_in_main_section(t: &Table) -> bool {
|
||||||
sec.get("version")
|
sec.get("version")
|
||||||
.and_then(|v| {
|
.and_then(|v| {
|
||||||
match *v {
|
match *v {
|
||||||
Value::String(ref s) => {
|
Value::String(ref s) => Some(Version::parse(&s[..]).is_ok()),
|
||||||
Some(Version::parse(&s[..]).is_ok())
|
|
||||||
},
|
|
||||||
_ => Some(false),
|
_ => Some(false),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue