Remove unneeded scope
This commit is contained in:
parent
a26a0645bd
commit
a56f000e3e
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue