diff options
| author | Zeyla Hellyer <[email protected]> | 2017-11-09 07:26:17 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-11-09 07:26:17 -0800 |
| commit | 6d1efc0ed5c05d3e3f43a1b5dc1b3d9ae7af9f43 (patch) | |
| tree | f0280988fe07fa5ca0de88665df5e709b0c39b36 /src | |
| parent | Fix parking_lot::{Mutex, RwLock} re-exports (diff) | |
| download | serenity-6d1efc0ed5c05d3e3f43a1b5dc1b3d9ae7af9f43.tar.xz serenity-6d1efc0ed5c05d3e3f43a1b5dc1b3d9ae7af9f43.zip | |
Fix Shard::shard_info doctest
Diffstat (limited to 'src')
| -rw-r--r-- | src/gateway/shard.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gateway/shard.rs b/src/gateway/shard.rs index cd502d7..2f00c36 100644 --- a/src/gateway/shard.rs +++ b/src/gateway/shard.rs @@ -343,7 +343,6 @@ impl Shard { /// # fn main() { /// # use serenity::client::gateway::Shard; /// # use serenity::prelude::Mutex; - /// # use std::error::Error; /// # use std::sync::Arc; /// # /// # let mutex = Arc::new(Mutex::new("".to_string())); @@ -351,10 +350,9 @@ impl Shard { /// # let shard = Shard::new(mutex.clone(), mutex, [1, 2]).unwrap(); /// # /// assert_eq!(shard.shard_info(), [1, 2]); - /// # Ok(()) /// # } /// # - /// # #[cfg(not(feature = "model")] + /// # #[cfg(not(feature = "model"))] /// # fn main() {} /// ``` pub fn shard_info(&self) -> [u64; 2] { self.shard_info } |