aboutsummaryrefslogtreecommitdiff
path: root/src/internal/ws_impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/ws_impl.rs')
-rw-r--r--src/internal/ws_impl.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/internal/ws_impl.rs b/src/internal/ws_impl.rs
index 6166f2b..7aedb28 100644
--- a/src/internal/ws_impl.rs
+++ b/src/internal/ws_impl.rs
@@ -7,9 +7,7 @@ use gateway::GatewayError;
use internal::prelude::*;
pub trait ReceiverExt {
- fn recv_json<F, T>(&mut self, decode: F) -> Result<T>
- where
- F: FnOnce(Value) -> Result<T>;
+ fn recv_json<F, T>(&mut self, decode: F) -> Result<T> where F: FnOnce(Value) -> Result<T>;
}
pub trait SenderExt {
@@ -18,8 +16,7 @@ pub trait SenderExt {
impl ReceiverExt for WsClient<TlsStream<TcpStream>> {
fn recv_json<F, T>(&mut self, decode: F) -> Result<T>
- where
- F: FnOnce(Value) -> Result<T>, {
+ where F: FnOnce(Value) -> Result<T> {
let message = self.recv_message()?;
if let OwnedMessage::Ping(ref x) = message {