diff options
| author | acdenisSK <[email protected]> | 2017-08-14 22:26:21 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-08-14 22:26:21 +0200 |
| commit | e00fe3ad9e1853443c8905da934ea3983813af89 (patch) | |
| tree | 2945905905b56526ec088966ca1db6732f46d0a0 /examples/06_voice/src | |
| parent | `$crate_name` => `version`, and a few adjustements (diff) | |
| download | serenity-e00fe3ad9e1853443c8905da934ea3983813af89.tar.xz serenity-e00fe3ad9e1853443c8905da934ea3983813af89.zip | |
Update examples
Diffstat (limited to 'examples/06_voice/src')
| -rw-r--r-- | examples/06_voice/src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/06_voice/src/main.rs b/examples/06_voice/src/main.rs index 2faa207..70878ac 100644 --- a/examples/06_voice/src/main.rs +++ b/examples/06_voice/src/main.rs @@ -57,7 +57,7 @@ command!(deafen(ctx, msg) { }, }; - let mut shard = ctx.shard.lock().unwrap(); + let mut shard = ctx.shard.lock(); let handler = match shard.manager.get(guild_id) { Some(handler) => handler, @@ -103,7 +103,7 @@ command!(join(ctx, msg, args) { }, }; - let mut shard = ctx.shard.lock().unwrap(); + let mut shard = ctx.shard.lock(); shard.manager.join(guild_id, connect_to); check_msg(msg.channel_id.say(&format!("Joined {}", connect_to.mention()))); @@ -119,7 +119,7 @@ command!(leave(ctx, msg) { }, }; - let mut shard = ctx.shard.lock().unwrap(); + let mut shard = ctx.shard.lock(); let has_handler = shard.manager.get(guild_id).is_some(); if has_handler { @@ -141,7 +141,7 @@ command!(mute(ctx, msg) { }, }; - let mut shard = ctx.shard.lock().unwrap(); + let mut shard = ctx.shard.lock(); let handler = match shard.manager.get(guild_id) { Some(handler) => handler, |