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/02_transparent_guild_sharding/src | |
| parent | `$crate_name` => `version`, and a few adjustements (diff) | |
| download | serenity-e00fe3ad9e1853443c8905da934ea3983813af89.tar.xz serenity-e00fe3ad9e1853443c8905da934ea3983813af89.zip | |
Update examples
Diffstat (limited to 'examples/02_transparent_guild_sharding/src')
| -rw-r--r-- | examples/02_transparent_guild_sharding/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/02_transparent_guild_sharding/src/main.rs b/examples/02_transparent_guild_sharding/src/main.rs index 0fd5a60..8546b0f 100644 --- a/examples/02_transparent_guild_sharding/src/main.rs +++ b/examples/02_transparent_guild_sharding/src/main.rs @@ -31,7 +31,7 @@ impl EventHandler for Handler { // multiple threads may otherwise attempt to read from or mutate it // concurrently. { - let shard = ctx.shard.lock().unwrap(); + let shard = ctx.shard.lock(); if let Some(shard_info) = shard.shard_info() { println!("Shard {}", shard_info[0]); |