diff options
| author | acdenisSK <[email protected]> | 2017-12-11 16:40:36 +0100 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-12-11 16:40:59 +0100 |
| commit | b26e1c4644fc2307b1da4f8fd3b1c68fc2004b8e (patch) | |
| tree | 53674a27dab31c4ced7f7be0191d31a9024131f3 /src/framework | |
| parent | Use a macro to generate FromStr impls (diff) | |
| download | serenity-b26e1c4644fc2307b1da4f8fd3b1c68fc2004b8e.tar.xz serenity-b26e1c4644fc2307b1da4f8fd3b1c68fc2004b8e.zip | |
Remove the `Box<Command>` impl
This was included back then as an afterthought about this impl from a user perspective, not from the lib's.
Plus it's unlikely we'll be using this in the near future.
Diffstat (limited to 'src/framework')
| -rw-r--r-- | src/framework/standard/command.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/framework/standard/command.rs b/src/framework/standard/command.rs index ec18766..d010f92 100644 --- a/src/framework/standard/command.rs +++ b/src/framework/standard/command.rs @@ -262,28 +262,6 @@ impl Command for Arc<Command> { } } -impl Command for Box<Command> { - fn execute(&self, c: &mut Context, m: &Message, a: Args) -> Result<(), Error> { - (**self).execute(c, m, a) - } - - fn options(&self) -> Arc<CommandOptions> { - (**self).options() - } - - fn init(&self) { - (**self).init() - } - - fn before(&self, c: &mut Context, m: &Message) -> bool { - (**self).before(c, m) - } - - fn after(&self, c: &mut Context, m: &Message, res: &Result<(), Error>) { - (**self).after(c, m, res) - } -} - impl<F> Command for F where F: Fn(&mut Context, &Message, Args) -> Result<(), Error> + Send + Sync |