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/model/channel/message.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/model/channel/message.rs')
| -rw-r--r-- | src/model/channel/message.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/model/channel/message.rs b/src/model/channel/message.rs index 930c046..15200fe 100644 --- a/src/model/channel/message.rs +++ b/src/model/channel/message.rs @@ -232,8 +232,7 @@ impl Message { } } - #[doc(hidden)] - pub fn transform_content(&mut self) { + pub(crate) fn transform_content(&mut self) { match self.kind { MessageType::PinsAdd => { self.content = format!("{} pinned a message to this channel. See all the pins.", self.author); @@ -497,8 +496,7 @@ impl Message { self.reaction_users(reaction_type, limit, after) } - #[doc(hidden)] - pub fn check_content_length(map: &JsonMap) -> Result<()> { + pub(crate) fn check_content_length(map: &JsonMap) -> Result<()> { if let Some(content) = map.get("content") { if let Value::String(ref content) = *content { if let Some(length_over) = Message::overflow_length(content) { @@ -510,8 +508,7 @@ impl Message { Ok(()) } - #[doc(hidden)] - pub fn check_embed_length(map: &JsonMap) -> Result<()> { + pub(crate) fn check_embed_length(map: &JsonMap) -> Result<()> { let embed = match map.get("embed") { Some(&Value::Object(ref value)) => value, _ => return Ok(()), |