aboutsummaryrefslogtreecommitdiff
path: root/examples/07_sample_bot_structure/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/07_sample_bot_structure/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/07_sample_bot_structure/src')
-rw-r--r--examples/07_sample_bot_structure/src/main.rs15
1 files changed, 8 insertions, 7 deletions
diff --git a/examples/07_sample_bot_structure/src/main.rs b/examples/07_sample_bot_structure/src/main.rs
index 1e194a7..e06285a 100644
--- a/examples/07_sample_bot_structure/src/main.rs
+++ b/examples/07_sample_bot_structure/src/main.rs
@@ -17,13 +17,14 @@ extern crate kankyo;
mod commands;
-use serenity::framework::StandardFramework;
-use serenity::model::event::ResumedEvent;
-use serenity::model::gateway::Ready;
-use serenity::prelude::*;
-use serenity::http;
-use std::collections::HashSet;
-use std::env;
+use std::{collections::HashSet, env};
+
+use serenity::{
+ framework::StandardFramework,
+ model::{event::ResumedEvent, gateway::Ready},
+ prelude::*,
+ http,
+};
struct Handler;