Use unused result

This commit is contained in:
Matthias Beyer 2016-03-01 21:23:09 +01:00
parent 22e9f8a93b
commit 74634227e0

View file

@ -58,10 +58,9 @@ impl LazyFile {
LazyFile::File(ref mut f) => return { LazyFile::File(ref mut f) => return {
// We seek to the beginning of the file since we expect each // We seek to the beginning of the file since we expect each
// access to the file to be in a different context // access to the file to be in a different context
f.seek(SeekFrom::Start(0)).map_err(|e| f.seek(SeekFrom::Start(0))
StoreError::new( .map_err(|e| StoreError::new(StoreErrorKind::FileNotCreated, Some(Box::new(e))))
StoreErrorKind::FileNotCreated, Some(Box::new(e)))); .map(|_| f)
Ok(f)
}, },
LazyFile::Absent(ref p) => { LazyFile::Absent(ref p) => {
try!(open_file(p).map_err(|e| { try!(open_file(p).map_err(|e| {