diff options
| author | Zeyla Hellyer <[email protected]> | 2017-11-09 07:25:16 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-11-09 07:25:16 -0800 |
| commit | 4ff14e38001b0e344480866d34d5aec95234ab8d (patch) | |
| tree | 71a9e5dce4125c8b2ba4435a1617f006db562797 /tests | |
| parent | Fix doc-tests (diff) | |
| download | serenity-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 'tests')
| -rw-r--r-- | tests/test_prelude.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_prelude.rs b/tests/test_prelude.rs index 2317fc0..7233b2a 100644 --- a/tests/test_prelude.rs +++ b/tests/test_prelude.rs @@ -1,8 +1,11 @@ +#![allow(unused_imports)] + extern crate serenity; -#[allow(unused_imports)] use serenity::prelude::{Mentionable, SerenityError}; -#[allow(unused_imports)] #[cfg(feature = "client")] use serenity::prelude::{Client, ClientError}; + +// parking_lot re-exports +use serenity::prelude::{Mutex, RwLock}; |