From 2f82c2df2e9658445d8b4ea636bafad6b879675a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 29 Jun 2020 13:06:39 +0300 Subject: [PATCH] Hide accidentally public constructor for gio::IOStreamAsyncReadWrite A similar type should be provided by the gio crate or an extension crate like https://github.com/sdroege/gio-futures --- src/gio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gio.rs b/src/gio.rs index 2ca16b7..114db7e 100644 --- a/src/gio.rs +++ b/src/gio.rs @@ -71,7 +71,7 @@ pub struct IOStreamAsyncReadWrite> { impl> IOStreamAsyncReadWrite { /// Create a new `gio::IOStream` adapter - pub fn new(stream: T) -> Result, T> { + fn new(stream: T) -> Result, T> { let write = stream .get_output_stream() .and_then(|s| s.dynamic_cast::().ok())