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/model | |
| 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/model')
| -rw-r--r-- | src/model/error.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/error.rs b/src/model/error.rs index 57801da..454b94b 100644 --- a/src/model/error.rs +++ b/src/model/error.rs @@ -13,10 +13,10 @@ use super::Permissions; /// re-ban all members with an odd discriminator: /// /// ```rust,no_run -/// # #[cfg(feature="client")] +/// # #[cfg(all(feature = "client", feature = "model"))] /// # use std::error::Error; /// # -/// # #[cfg(feature="client")] +/// # #[cfg(all(feature = "client", feature = "model"))] /// # fn try_main() -> Result<(), Box<Error>> { /// use serenity::prelude::*; /// use serenity::model::*; @@ -51,12 +51,12 @@ use super::Permissions; /// # Ok(()) /// # } /// # -/// # #[cfg(feature="client")] +/// # #[cfg(all(feature = "client", feature = "model"))] /// # fn main() { /// # try_main().unwrap(); /// # } /// # -/// # #[cfg(not(feature="client"))] +/// # #[cfg(not(all(feature="client", feature = "model")))] /// # fn main() { } /// ``` /// |