From 6015bf5f7b5f94abf4f038c57c9aa2fbcbe5a71d Mon Sep 17 00:00:00 2001 From: Naja Melan Date: Tue, 10 Mar 2020 19:31:37 +0100 Subject: [PATCH] error.description is deprecated as of current nightly. --- src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 60dc335..ced32fe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -73,7 +73,6 @@ pub mod gio; #[cfg(feature = "tokio-runtime")] pub mod tokio; -use std::error::Error; use tungstenite::protocol::CloseFrame; /// Creates a WebSocket handshake from a request and a stream. @@ -118,7 +117,7 @@ where f.await.map_err(|e| { WsError::Io(std::io::Error::new( std::io::ErrorKind::Other, - e.description(), + e.to_string(), )) }) } @@ -183,7 +182,7 @@ where f.await.map_err(|e| { WsError::Io(std::io::Error::new( std::io::ErrorKind::Other, - e.description(), + e.to_string(), )) }) }