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 {
|
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| {
|
||||||
|
|
Loading…
Reference in a new issue