From 74ec713825b2b4c55382fb76fa57bd967e66b3aa Mon Sep 17 00:00:00 2001 From: Zeyla Hellyer Date: Mon, 16 Oct 2017 06:38:15 -0700 Subject: [PATCH] Re-export parking_lot::{Arc, Mutex} from prelude These two types are used in public APIs, and so by re-exporting them it makes it easier for the user to use them without needing to depend on `parking_lot` themselves. --- src/prelude.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/prelude.rs b/src/prelude.rs index ff27bb60149..435fb8a53f9 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};