fs: expose fs::File::from_std() (#696)

This commit is contained in:
Ryan Dahl
2018-10-17 19:51:46 -04:00
committed by Toby Lawrence
parent 7b5ef61aeb
commit bffa3ed558
+1 -1
View File
@@ -82,7 +82,7 @@ impl File {
/// Convert a [`std::fs::File`][std] to a `tokio_fs::File`.
///
/// [std]: https://doc.rust-lang.org/std/fs/struct.File.html
pub(crate) fn from_std(std: StdFile) -> File {
pub fn from_std(std: StdFile) -> File {
File { std: Some(std) }
}