diff options
| author | Zeyla Hellyer <[email protected]> | 2017-11-01 13:10:16 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-11-01 13:10:16 -0700 |
| commit | 2c59f87c1408ef633b8749f6688dc42129054a36 (patch) | |
| tree | ae94858d2a86dd23c0f4ad64c369069909c90050 /src/client | |
| parent | Fix no-client cache tests (diff) | |
| download | serenity-2c59f87c1408ef633b8749f6688dc42129054a36.tar.xz serenity-2c59f87c1408ef633b8749f6688dc42129054a36.zip | |
Fix doctests for a variety of feature targets
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/context.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/context.rs b/src/client/context.rs index 2288f28..d0a6fc7 100644 --- a/src/client/context.rs +++ b/src/client/context.rs @@ -263,6 +263,8 @@ impl Context { /// playing: /// /// ```rust,no_run + /// # #[cfg(feature = "model")] + /// # fn main() { /// # use serenity::prelude::*; /// # use serenity::model::*; /// # @@ -282,6 +284,10 @@ impl Context { /// } /// /// let mut client = Client::new("token", Handler); client.start().unwrap(); + /// # } + /// # + /// # #[cfg(not(feature = "model"))] + /// # fn main() { } /// ``` /// /// [`Online`]: ../model/enum.OnlineStatus.html#variant.Online |