diff options
| author | acdenisSK <[email protected]> | 2017-08-19 02:05:11 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-08-19 02:05:39 +0200 |
| commit | 3e97e77ce8878c65cf3051c053d32af8e4888957 (patch) | |
| tree | 5c0d90317ec87b1e4740b78e41a78ba9e3f2b924 /src/framework/command.rs | |
| parent | Fix a failing test (#140) (diff) | |
| download | serenity-3e97e77ce8878c65cf3051c053d32af8e4888957.tar.xz serenity-3e97e77ce8878c65cf3051c053d32af8e4888957.zip | |
Clippy
Diffstat (limited to 'src/framework/command.rs')
| -rw-r--r-- | src/framework/command.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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>, String) -> Result<(), St pub type Help = Fn(&mut Context, &Message, HashMap<String, Arc<CommandGroup>>, &[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<Command>; pub type PrefixCheck = Fn(&mut Context, &Message) -> Option<String> + 'static; |