aboutsummaryrefslogtreecommitdiff
path: root/src/client/gateway/prep.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/gateway/prep.rs')
-rw-r--r--src/client/gateway/prep.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/gateway/prep.rs b/src/client/gateway/prep.rs
index 6aa40f3..3844a8d 100644
--- a/src/client/gateway/prep.rs
+++ b/src/client/gateway/prep.rs
@@ -34,7 +34,7 @@ pub fn parse_ready(event: GatewayEvent,
let _ = tx.send(GatewayStatus::SendMessage(identification));
- match try!(receiver.recv_json(GatewayEvent::decode)) {
+ match receiver.recv_json(GatewayEvent::decode)? {
GatewayEvent::Dispatch(seq, Event::Ready(event)) => {
Ok((event, seq))
},