aboutsummaryrefslogtreecommitdiff
path: root/src/voice/handler.rs
diff options
context:
space:
mode:
authoralex <[email protected]>2017-06-14 18:26:01 +0200
committerZeyla Hellyer <[email protected]>2017-06-14 09:26:01 -0700
commit32e07e4ac822d5cc1118f0db0fc92b549c1aaf81 (patch)
treea4db15956faac92d544135de6885d64854a8b31d /src/voice/handler.rs
parentUse HTTPS Connector with remaining HTTP functions (diff)
downloadserenity-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/voice/handler.rs')
-rw-r--r--src/voice/handler.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/voice/handler.rs b/src/voice/handler.rs
index e40c6d9..fb157e6 100644
--- a/src/voice/handler.rs
+++ b/src/voice/handler.rs
@@ -104,16 +104,8 @@ pub struct Handler {
impl Handler {
/// Creates a new Handler.
- ///
- /// **Note**: You should never call this yourself, and should instead use
- /// [`Manager::join`].
- ///
- /// Like, really. Really do not use this. Please.
- ///
- /// [`Manager::join`]: struct.Manager.html#method.join
- #[doc(hidden)]
#[inline]
- pub fn new(guild_id: GuildId, ws: MpscSender<Value>, user_id: UserId) -> Self {
+ pub(crate) fn new(guild_id: GuildId, ws: MpscSender<Value>, user_id: UserId) -> Self {
Self::new_raw(guild_id, Some(ws), user_id)
}