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/client | |
| 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/client')
| -rw-r--r-- | src/client/context.rs | 9 |
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, |