aboutsummaryrefslogtreecommitdiff
path: root/src/client
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/client
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/client')
-rw-r--r--src/client/context.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/client/context.rs b/src/client/context.rs
index e9b6d13..a65ffe3 100644
--- a/src/client/context.rs
+++ b/src/client/context.rs
@@ -43,14 +43,7 @@ pub struct Context {
impl Context {
/// Create a new Context to be passed to an event handler.
- ///
- /// There's no real reason to use this yourself. But the option is there.
- /// Highly re-consider _not_ using this if you're tempted.
- ///
- /// Or don't do what I say. I'm just a comment hidden from the generated
- /// documentation.
- #[doc(hidden)]
- pub fn new(shard: Arc<Mutex<Shard>>, data: Arc<Mutex<ShareMap>>) -> Context {
+ pub(crate) fn new(shard: Arc<Mutex<Shard>>, data: Arc<Mutex<ShareMap>>) -> Context {
Context {
data: data,
shard: shard,