diff --git a/src/gio.rs b/src/gio.rs index 875181c..16ce1d8 100644 --- a/src/gio.rs +++ b/src/gio.rs @@ -68,6 +68,8 @@ pub struct IOStreamAsyncReadWrite> { write: gio::OutputStreamAsyncWrite, } +unsafe impl> Send for IOStreamAsyncReadWrite {} + impl> IOStreamAsyncReadWrite { /// Create a new `gio::IOStream` adapter pub fn new(stream: T) -> Result, T> { diff --git a/src/lib.rs b/src/lib.rs index af99e04..1ea658d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,7 +31,6 @@ unused_imports, unused_import_braces )] -#![forbid(unsafe_code)] pub use tungstenite; @@ -272,8 +271,7 @@ impl WebSocketStream { } /// Returns a reference to the configuration of the tungstenite stream. - pub fn get_config(&self) -> &WebSocketConfig - { + pub fn get_config(&self) -> &WebSocketConfig { self.inner.get_config() }