From 550030264952f0e0043b63f4582bb817ef8bbf37 Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Thu, 27 Jul 2017 06:42:48 +0200 Subject: rustfmt --- src/framework/command.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/framework/command.rs') diff --git a/src/framework/command.rs b/src/framework/command.rs index e75ee5e..1484891 100644 --- a/src/framework/command.rs +++ b/src/framework/command.rs @@ -1,12 +1,14 @@ use std::sync::Arc; use super::Configuration; -use ::client::Context; -use ::model::{Message, Permissions}; +use client::Context; +use model::{Message, Permissions}; use std::collections::HashMap; pub type Check = Fn(&mut Context, &Message, &Arc) -> bool + 'static; pub type Exec = Fn(&mut Context, &Message, Vec) -> Result<(), String> + 'static; -pub type Help = Fn(&mut Context, &Message, HashMap>, &[String]) -> Result<(), String> + 'static; +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(crate) type InternalCommand = Arc; @@ -67,7 +69,8 @@ pub struct Command { impl Command { pub fn new(f: F) -> Self - where F: Fn(&mut Context, &Message, Vec) -> Result<(), String> + 'static { + where + F: Fn(&mut Context, &Message, Vec) -> Result<(), String> + 'static, { Command { aliases: Vec::new(), checks: Vec::default(), -- cgit v1.2.3