aboutsummaryrefslogtreecommitdiff
path: root/examples/02_transparent_guild_sharding
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/02_transparent_guild_sharding
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/02_transparent_guild_sharding')
-rw-r--r--examples/02_transparent_guild_sharding/src/main.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/02_transparent_guild_sharding/src/main.rs b/examples/02_transparent_guild_sharding/src/main.rs
index f134fc8..26e7afb 100644
--- a/examples/02_transparent_guild_sharding/src/main.rs
+++ b/examples/02_transparent_guild_sharding/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::*,
+};
+
// Serenity implements transparent sharding in a way that you do not need to
// manually handle separate processes or connections manually.
//