summaryrefslogtreecommitdiffstats
path: root/lib/core/libimagstore/src/file_abstraction/stdio/mod.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-10-31 15:47:43 +0100
committerGitHub <noreply@github.com>2017-10-31 15:47:43 +0100
commit2d94be583180e4f8025e2aa1d2120b2ba925c41c (patch)
tree78515adccdc10cce12fec023dd5b3ff535d97d24 /lib/core/libimagstore/src/file_abstraction/stdio/mod.rs
parent429194b5d05cc8bca93e1c33ab2c374b33a9ca40 (diff)
parentf82ad2b6d1db3dbc84e1af4a2a4dabf23e31b1cc (diff)
downloadimag-2d94be583180e4f8025e2aa1d2120b2ba925c41c.tar.gz
imag-2d94be583180e4f8025e2aa1d2120b2ba925c41c.tar.xz
Diffstat (limited to 'lib/core/libimagstore/src/file_abstraction/stdio/mod.rs')
-rw-r--r--lib/core/libimagstore/src/file_abstraction/stdio/mod.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/core/libimagstore/src/file_abstraction/stdio/mod.rs b/lib/core/libimagstore/src/file_abstraction/stdio/mod.rs
index 7bf4f425..5b93f6f0 100644
--- a/lib/core/libimagstore/src/file_abstraction/stdio/mod.rs
+++ b/lib/core/libimagstore/src/file_abstraction/stdio/mod.rs
@@ -56,11 +56,10 @@ impl<W, M> StdIoFileAbstraction<W, M>
pub fn new<R: Read>(in_stream: &mut R, out_stream: Rc<RefCell<W>>, mapper: M) -> Result<StdIoFileAbstraction<W, M>, SE> {
StdoutFileAbstraction::new(out_stream, mapper)
.and_then(|out| {
- let _ = try!(out
- .backend()
- .lock()
- .map_err(|_| SE::from_kind(SEK::LockError))
- .map(|mut mtx| out.mapper().read_to_fs(in_stream, mtx.get_mut())));
+ let _ = out.backend()
+ .lock()
+ .map_err(|_| SE::from_kind(SEK::LockError))
+ .map(|mut mtx| out.mapper().read_to_fs(in_stream, mtx.get_mut()))?;
Ok(StdIoFileAbstraction(out))
})