diff options
| author | alex <[email protected]> | 2017-06-14 18:26:01 +0200 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-06-14 09:26:01 -0700 |
| commit | 32e07e4ac822d5cc1118f0db0fc92b549c1aaf81 (patch) | |
| tree | a4db15956faac92d544135de6885d64854a8b31d /src/framework/mod.rs | |
| parent | Use HTTPS Connector with remaining HTTP functions (diff) | |
| download | serenity-32e07e4ac822d5cc1118f0db0fc92b549c1aaf81.tar.xz serenity-32e07e4ac822d5cc1118f0db0fc92b549c1aaf81.zip | |
Switch from #[doc(hidden)] to pub(crate)
Switch from using `#[doc(hidden)]` to hide some internal functions to
`pub(crate)`.
The library now requires rustc 1.18.
Diffstat (limited to 'src/framework/mod.rs')
| -rw-r--r-- | src/framework/mod.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/framework/mod.rs b/src/framework/mod.rs index 43d8fe4..671771f 100644 --- a/src/framework/mod.rs +++ b/src/framework/mod.rs @@ -62,8 +62,9 @@ mod create_command; mod create_group; mod buckets; -pub use self::buckets::{Bucket, MemberRatelimit, Ratelimit}; -pub use self::command::{Command, CommandType, CommandGroup, CommandOrAlias}; +pub(crate) use self::buckets::{Bucket, Ratelimit}; +pub use self::command::{Command, CommandType, CommandGroup}; +pub(crate) use self::command::CommandOrAlias; pub use self::configuration::Configuration; pub use self::create_command::CreateCommand; pub use self::create_group::CreateGroup; @@ -450,8 +451,7 @@ impl Framework { } #[allow(cyclomatic_complexity)] - #[doc(hidden)] - pub fn dispatch(&mut self, mut context: Context, message: Message) { + pub(crate) fn dispatch(&mut self, mut context: Context, message: Message) { let res = command::positions(&mut context, &message, &self.configuration); let positions = match res { @@ -798,8 +798,7 @@ impl Framework { self } - #[doc(hidden)] - pub fn update_current_user(&mut self, user_id: UserId, is_bot: bool) { + pub(crate) fn update_current_user(&mut self, user_id: UserId, is_bot: bool) { self.user_info = (user_id.0, is_bot); } |