Use unused result

This commit is contained in:
Matthias Beyer 2016-03-01 21:23:09 +01:00
parent 22e9f8a93b
commit 74634227e0
1 changed files with 3 additions and 4 deletions

View File

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