aboutsummaryrefslogtreecommitdiff
path: root/examples/07_sample_bot_structure/src
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-08-14 22:26:21 +0200
committeracdenisSK <[email protected]>2017-08-14 22:26:21 +0200
commite00fe3ad9e1853443c8905da934ea3983813af89 (patch)
tree2945905905b56526ec088966ca1db6732f46d0a0 /examples/07_sample_bot_structure/src
parent`$crate_name` => `version`, and a few adjustements (diff)
downloadserenity-e00fe3ad9e1853443c8905da934ea3983813af89.tar.xz
serenity-e00fe3ad9e1853443c8905da934ea3983813af89.zip
Update examples
Diffstat (limited to 'examples/07_sample_bot_structure/src')
-rw-r--r--examples/07_sample_bot_structure/src/commands/meta.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/07_sample_bot_structure/src/commands/meta.rs b/examples/07_sample_bot_structure/src/commands/meta.rs
index fc7c492..4b43cb8 100644
--- a/examples/07_sample_bot_structure/src/commands/meta.rs
+++ b/examples/07_sample_bot_structure/src/commands/meta.rs
@@ -1,6 +1,5 @@
command!(latency(ctx, msg) {
let latency = ctx.shard.lock()
- .unwrap()
.latency()
.map_or_else(|| "N/A".to_owned(), |s| {
format!("{}.{}s", s.as_secs(), s.subsec_nanos())