diff options
| author | acdenisSK <[email protected]> | 2018-03-29 12:10:43 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2018-03-29 12:11:23 +0200 |
| commit | 4c05e828d5191975ef1a5e1ac581b646a69d2c25 (patch) | |
| tree | fb583f88a1e5d192651b399aca1839f3f58e661e /src/framework/standard/mod.rs | |
| parent | Add a connection timeout (diff) | |
| download | serenity-4c05e828d5191975ef1a5e1ac581b646a69d2c25.tar.xz serenity-4c05e828d5191975ef1a5e1ac581b646a69d2c25.zip | |
Refactor imports/exports to use nested groups and better formatting
Diffstat (limited to 'src/framework/standard/mod.rs')
| -rw-r--r-- | src/framework/standard/mod.rs | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/src/framework/standard/mod.rs b/src/framework/standard/mod.rs index 8db7a7d..fdb9ca4 100644 --- a/src/framework/standard/mod.rs +++ b/src/framework/standard/mod.rs @@ -9,10 +9,21 @@ mod create_group; mod buckets; mod args; -pub use self::args::{Args, Iter, Error as ArgError}; +pub use self::args::{ + Args, + Iter, + Error as ArgError +}; pub(crate) use self::buckets::{Bucket, Ratelimit}; -pub(crate) use self::command::{Help}; -pub use self::command::{HelpFunction, HelpOptions, Command, CommandGroup, CommandOptions, Error as CommandError}; +pub(crate) use self::command::Help; +pub use self::command::{ + HelpFunction, + HelpOptions, + Command, + CommandGroup, + CommandOptions, + Error as CommandError +}; pub use self::command::CommandOrAlias; pub use self::configuration::Configuration; pub use self::create_help_command::CreateHelpCommand; @@ -21,14 +32,18 @@ pub use self::create_group::CreateGroup; use client::Context; use internal::RwLockExt; -use model::channel::Message; -use model::guild::{Guild, Member}; -use model::id::{ChannelId, GuildId, UserId}; -use model::Permissions; +use model::{ + channel::Message, + guild::{Guild, Member}, + id::{ChannelId, GuildId, UserId}, + Permissions +}; use self::command::{AfterHook, BeforeHook, UnrecognisedCommandHook}; -use std::collections::HashMap; -use std::default::Default; -use std::sync::Arc; +use std::{ + collections::HashMap, + default::Default, + sync::Arc +}; use super::Framework; use threadpool::ThreadPool; |