diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-11-06 19:03:10 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-11-06 19:03:10 +0100 |
commit | d493b04555bc6db63bb283394eec03cc21adf550 (patch) | |
tree | f39823a6d18c3746e43961186f54253e483d0297 /lib/core | |
parent | 0e4cb597727aff2f1350dd283b3374dbd9270e2b (diff) |
Remove scope for better readability
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/libimagstore/src/file_abstraction/fs.rs | 8 |
1 files 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<A: AsRef<Path>>(p: A) -> ::std::io::Result<Option<File>> { 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)) } |