chore: remove unnecessary conversion (#1332)

This commit is contained in:
Taiki Endo
2019-07-20 12:10:42 -04:00
committed by Lucio Franco
parent 9d3e5aac08
commit 7a52ddcd09
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -35,6 +35,6 @@ where
let std = ready!(crate::blocking_io(|| StdFile::create(&self.path)))?;
let file = File::from_std(std);
Poll::Ready(Ok(file.into()))
Poll::Ready(Ok(file))
}
}
+1 -1
View File
@@ -36,6 +36,6 @@ impl Future for MetadataFuture {
let metadata = ready!(crate::blocking_io(|| StdFile::metadata(inner.std())))?;
let file = inner.file.take().expect(POLL_AFTER_RESOLVE);
Poll::Ready(Ok((file, metadata).into()))
Poll::Ready(Ok((file, metadata)))
}
}
+1 -1
View File
@@ -36,6 +36,6 @@ where
let std = ready!(crate::blocking_io(|| self.options.open(&self.path)))?;
let file = File::from_std(std);
Poll::Ready(Ok(file.into()))
Poll::Ready(Ok(file))
}
}
+1 -1
View File
@@ -35,6 +35,6 @@ impl Future for SeekFuture {
.expect("Cannot poll `SeekFuture` after it resolves")
.poll_seek(inner_self.pos))?;
let inner = inner_self.inner.take().unwrap();
Poll::Ready(Ok((inner, pos).into()))
Poll::Ready(Ok((inner, pos)))
}
}