From 3e97e77ce8878c65cf3051c053d32af8e4888957 Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Sat, 19 Aug 2017 02:05:11 +0200 Subject: Clippy --- src/framework/command.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/framework/command.rs') diff --git a/src/framework/command.rs b/src/framework/command.rs index ed38a14..3528e85 100644 --- a/src/framework/command.rs +++ b/src/framework/command.rs @@ -9,8 +9,8 @@ pub type Exec = Fn(&mut Context, &Message, Vec, String) -> Result<(), St pub type Help = Fn(&mut Context, &Message, HashMap>, &[String]) -> Result<(), String> + 'static; -pub type BeforeHook = Fn(&mut Context, &Message, &String) -> bool + 'static; -pub type AfterHook = Fn(&mut Context, &Message, &String, Result<(), String>) + 'static; +pub type BeforeHook = Fn(&mut Context, &Message, &str) -> bool + 'static; +pub type AfterHook = Fn(&mut Context, &Message, &str, Result<(), String>) + 'static; pub(crate) type InternalCommand = Arc; pub type PrefixCheck = Fn(&mut Context, &Message) -> Option + 'static; -- cgit v1.2.3