aboutsummaryrefslogtreecommitdiff
path: root/examples/01_basic_ping_bot/src
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2018-11-12 18:52:56 +0100
committerAlex M. M <[email protected]>2018-11-12 18:52:56 +0100
commitd6c4beeaf89940731c3f2fff14199414dc478342 (patch)
tree91f3a1fca396d55e80995c87eb2233f34f1b2f2d /examples/01_basic_ping_bot/src
parentAdd Link to the `Voice on Windows`-Wiki-Entry (#434) (diff)
downloadserenity-d6c4beeaf89940731c3f2fff14199414dc478342.tar.xz
serenity-d6c4beeaf89940731c3f2fff14199414dc478342.zip
Update examples' unwraps to expects and imports as nested (#435)
Diffstat (limited to 'examples/01_basic_ping_bot/src')
-rw-r--r--examples/01_basic_ping_bot/src/main.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/01_basic_ping_bot/src/main.rs b/examples/01_basic_ping_bot/src/main.rs
index 3bccb74..63c932b 100644
--- a/examples/01_basic_ping_bot/src/main.rs
+++ b/examples/01_basic_ping_bot/src/main.rs
@@ -1,10 +1,12 @@
extern crate serenity;
-use serenity::prelude::*;
-use serenity::model::channel::Message;
-use serenity::model::gateway::Ready;
use std::env;
+use serenity::{
+ model::{channel::Message, gateway::Ready},
+ prelude::*,
+};
+
struct Handler;
impl EventHandler for Handler {