From b26e1c4644fc2307b1da4f8fd3b1c68fc2004b8e Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Mon, 11 Dec 2017 16:40:36 +0100 Subject: Remove the `Box` 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. --- src/framework/standard/command.rs | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/framework') 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 { } } -impl Command for Box { - fn execute(&self, c: &mut Context, m: &Message, a: Args) -> Result<(), Error> { - (**self).execute(c, m, a) - } - - fn options(&self) -> Arc { - (**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 Command for F where F: Fn(&mut Context, &Message, Args) -> Result<(), Error> + Send + Sync -- cgit v1.2.3