From d493b04555bc6db63bb283394eec03cc21adf550 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 6 Nov 2018 19:03:10 +0100 Subject: [PATCH] Remove scope for better readability Signed-off-by: Matthias Beyer --- lib/core/libimagstore/src/file_abstraction/fs.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/core/libimagstore/src/file_abstraction/fs.rs b/lib/core/libimagstore/src/file_abstraction/fs.rs index c34bc5d4..d6d829c2 100644 --- a/lib/core/libimagstore/src/file_abstraction/fs.rs +++ b/lib/core/libimagstore/src/file_abstraction/fs.rs @@ -188,11 +188,9 @@ impl PathIterBuilder for WalkDirPathIterBuilder { fn open_file>(p: A) -> ::std::io::Result> { match OpenOptions::new().write(true).read(true).open(p) { - Err(e) => { - match e.kind() { - ::std::io::ErrorKind::NotFound => return Ok(None), - _ => return Err(e), - } + Err(e) => match e.kind() { + ::std::io::ErrorKind::NotFound => return Ok(None), + _ => return Err(e), }, Ok(file) => Ok(Some(file)) }