aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-11-09 07:25:16 -0800
committerZeyla Hellyer <[email protected]>2017-11-09 07:25:16 -0800
commit4ff14e38001b0e344480866d34d5aec95234ab8d (patch)
tree71a9e5dce4125c8b2ba4435a1617f006db562797 /src
parentFix doc-tests (diff)
downloadserenity-4ff14e38001b0e344480866d34d5aec95234ab8d.tar.xz
serenity-4ff14e38001b0e344480866d34d5aec95234ab8d.zip
Fix parking_lot::{Mutex, RwLock} re-exports
Fix the re-exports for `parking_lot::{Mutex, RwLock}` no longer functioning due to the conditional compilation gate removal (`parking_lot` is now always compiled). Tests have been updated to ensure the functionality of these re-exports.
Diffstat (limited to 'src')
-rw-r--r--src/prelude.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/prelude.rs b/src/prelude.rs
index 8a361e9..435fb8a 100644
--- a/src/prelude.rs
+++ b/src/prelude.rs
@@ -16,6 +16,7 @@
pub use error::Error as SerenityError;
pub use model::Mentionable;
+pub use parking_lot::{Mutex, RwLock};
#[cfg(feature = "client")]
pub use client::{Client, ClientError as ClientError, Context, EventHandler};
@@ -25,7 +26,5 @@ pub use gateway::GatewayError;
pub use http::HttpError;
#[cfg(feature = "model")]
pub use model::ModelError;
-#[cfg(feature = "parking_lot")]
-pub use parking_lot::{Mutex, RwLock};
#[cfg(feature = "voice")]
pub use voice::VoiceError;