diff options
| author | Alex Lyon <[email protected]> | 2017-07-13 21:30:00 -0700 |
|---|---|---|
| committer | alex <[email protected]> | 2017-07-14 06:30:00 +0200 |
| commit | 88765d0a978001ff88a1ee12798a725b7f5a90e9 (patch) | |
| tree | d66970df218ac9e9c4aa3b038e56ee6ce7c81292 /src/gateway | |
| parent | Fix the doc on `PrivateChannel::name` (diff) | |
| download | serenity-88765d0a978001ff88a1ee12798a725b7f5a90e9.tar.xz serenity-88765d0a978001ff88a1ee12798a725b7f5a90e9.zip | |
Switch to tokio for events (#122)
Diffstat (limited to 'src/gateway')
| -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 4c06944..473c17b 100644 --- a/src/gateway/shard.rs +++ b/src/gateway/shard.rs @@ -526,7 +526,7 @@ impl Shard { /// impl EventHandler for Handler { /// fn on_message(&self, ctx: Context, msg: Message) { /// if msg.content == "~ping" { - /// if let Some(latency) = ctx.shard.lock().unwrap().latency() { + /// if let Some(latency) = ctx.shard.lock().latency() { /// let s = format!("{}.{}s", latency.as_secs(), latency.subsec_nanos()); /// /// let _ = msg.channel_id.say(&s); |