diff options
| author | Zeyla Hellyer <[email protected]> | 2018-06-17 15:53:09 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-06-17 15:53:09 -0700 |
| commit | 6ddfef8359a619be9a49be7b33b466724eed0ecb (patch) | |
| tree | 5fb9c070b1650b95aa6b5713b3630fc253095275 /src/framework | |
| parent | Fix Args test (diff) | |
| download | serenity-6ddfef8359a619be9a49be7b33b466724eed0ecb.tar.xz serenity-6ddfef8359a619be9a49be7b33b466724eed0ecb.zip | |
Remove extraneous spaces at the end of lines
Diffstat (limited to 'src/framework')
| -rw-r--r-- | src/framework/mod.rs | 2 | ||||
| -rw-r--r-- | src/framework/standard/command.rs | 4 | ||||
| -rw-r--r-- | src/framework/standard/create_command.rs | 8 | ||||
| -rw-r--r-- | src/framework/standard/create_group.rs | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/src/framework/mod.rs b/src/framework/mod.rs index 359882c..ad80e58 100644 --- a/src/framework/mod.rs +++ b/src/framework/mod.rs @@ -42,7 +42,7 @@ //! .configure(|c| c.prefix("~")) //! .on("about", |_, msg, _| { //! msg.channel_id.say("A simple test bot")?; -//! +//! //! // The `command!` macro implicitly puts an `Ok(())` at the end of each command definiton; //! // signifying successful execution. //! // diff --git a/src/framework/standard/command.rs b/src/framework/standard/command.rs index d8fc81e..c9dad59 100644 --- a/src/framework/standard/command.rs +++ b/src/framework/standard/command.rs @@ -20,8 +20,8 @@ type CheckFunction = Fn(&mut Context, &Message, &mut Args, &CommandOptions) -> b pub struct Check(pub(crate) Box<CheckFunction>); impl Check { - pub(crate) fn new<F: Send + Sync + 'static>(f: F) -> Self - where F: Fn(&mut Context, &Message, &mut Args, &CommandOptions) -> bool + pub(crate) fn new<F: Send + Sync + 'static>(f: F) -> Self + where F: Fn(&mut Context, &Message, &mut Args, &CommandOptions) -> bool { Check(Box::new(f)) } diff --git a/src/framework/standard/create_command.rs b/src/framework/standard/create_command.rs index cba89c5..9c5e81c 100644 --- a/src/framework/standard/create_command.rs +++ b/src/framework/standard/create_command.rs @@ -1,8 +1,8 @@ pub use super::{ - Args, - Command, - CommandGroup, - CommandOptions, + Args, + Command, + CommandGroup, + CommandOptions, CommandError, Check, }; diff --git a/src/framework/standard/create_group.rs b/src/framework/standard/create_group.rs index e31e4eb..18f6402 100644 --- a/src/framework/standard/create_group.rs +++ b/src/framework/standard/create_group.rs @@ -1,7 +1,7 @@ pub use super::command::{ - Command, - CommandGroup, - CommandOptions, + Command, + CommandGroup, + CommandOptions, Error as CommandError }; pub(crate) use super::command::CommandOrAlias; |