Use unused result
This commit is contained in:
parent
22e9f8a93b
commit
74634227e0
1 changed files with 3 additions and 4 deletions
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue