diff options
| author | Zeyla Hellyer <[email protected]> | 2017-12-15 21:33:22 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-12-16 08:45:26 -0800 |
| commit | c9efd7c147abfd1f92758719141fbb67d9792271 (patch) | |
| tree | 319f4120d2efbf2748dc8ad9c23c1a14ac9e1872 /examples/07_sample_bot_structure/src/commands/owner.rs | |
| parent | Revamp the internals of `Args` (diff) | |
| download | serenity-c9efd7c147abfd1f92758719141fbb67d9792271.tar.xz serenity-c9efd7c147abfd1f92758719141fbb67d9792271.zip | |
Fix compilation of example 07
Diffstat (limited to 'examples/07_sample_bot_structure/src/commands/owner.rs')
| -rw-r--r-- | examples/07_sample_bot_structure/src/commands/owner.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/examples/07_sample_bot_structure/src/commands/owner.rs b/examples/07_sample_bot_structure/src/commands/owner.rs index e80c19d..7836b8f 100644 --- a/examples/07_sample_bot_structure/src/commands/owner.rs +++ b/examples/07_sample_bot_structure/src/commands/owner.rs @@ -1,10 +1,5 @@ command!(quit(ctx, msg, _args) { - match ctx.quit() { - Ok(()) => { - let _ = msg.reply("Shutting down!"); - }, - Err(why) => { - let _ = msg.reply(&format!("Failed to shutdown: {:?}", why)); - }, - } + ctx.quit(); + + let _ = msg.reply("Shutting down!"); }); |