From bffa3ed55845e86a88a72ae018badf6f407f4ff5 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 17 Oct 2018 19:51:46 -0400 Subject: [PATCH] fs: expose fs::File::from_std() (#696) --- tokio-fs/src/file/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-fs/src/file/mod.rs b/tokio-fs/src/file/mod.rs index c3ae43112..c95f4f32f 100644 --- a/tokio-fs/src/file/mod.rs +++ b/tokio-fs/src/file/mod.rs @@ -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) } }