From a56f000e3e08f5459671b7c849d43282700b70c9 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 14 May 2016 19:38:22 +0200 Subject: [PATCH] Remove unneeded scope --- libimagstore/src/store.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 3bbdc8a6..53cd60ca 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -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)