diff options
| author | acdenisSK <[email protected]> | 2017-10-24 18:20:11 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-10-24 18:21:32 +0200 |
| commit | 29b55c098ad47c9aa349092af3fff04349838da3 (patch) | |
| tree | 0e4bdbec7e9e4b8ea87eb6f3f34a9c92ec897e96 /src/gateway/shard.rs | |
| parent | Fix the version (diff) | |
| download | serenity-29b55c098ad47c9aa349092af3fff04349838da3.tar.xz serenity-29b55c098ad47c9aa349092af3fff04349838da3.zip | |
Remove unwraps
Diffstat (limited to 'src/gateway/shard.rs')
| -rw-r--r-- | src/gateway/shard.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/shard.rs b/src/gateway/shard.rs index 3343adc..0b47acc 100644 --- a/src/gateway/shard.rs +++ b/src/gateway/shard.rs @@ -142,7 +142,7 @@ impl Shard { token: Arc<Mutex<String>>, shard_info: [u64; 2]) -> Result<Shard> { - let client = connecting(&*ws_url.lock().unwrap()); + let client = connecting(&*ws_url.lock()); let current_presence = (None, OnlineStatus::Online); let heartbeat_instants = (None, None); |