diff options
| author | Zeyla Hellyer <[email protected]> | 2017-06-24 09:31:25 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-06-24 09:31:25 -0700 |
| commit | a2617073f9b0cae1fd5734975bedbfa864d2cfcd (patch) | |
| tree | f9b9dced423177bbe4f893394d578d2f3a2e9f90 /tests/test_formatters.rs | |
| parent | Make Message::nonce a serde_json::Value (diff) | |
| download | serenity-a2617073f9b0cae1fd5734975bedbfa864d2cfcd.tar.xz serenity-a2617073f9b0cae1fd5734975bedbfa864d2cfcd.zip | |
Fix no-feature tests
Diffstat (limited to 'tests/test_formatters.rs')
| -rw-r--r-- | tests/test_formatters.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_formatters.rs b/tests/test_formatters.rs index 787a3e2..ba21033 100644 --- a/tests/test_formatters.rs +++ b/tests/test_formatters.rs @@ -1,8 +1,6 @@ extern crate serenity; use serenity::model::*; -use serenity::utils::Colour; -use std::sync::{Arc, RwLock}; #[test] fn test_formatters() { @@ -13,8 +11,12 @@ fn test_formatters() { assert_eq!(UserId(5).to_string(), "5"); } +#[cfg(feature="utils")] #[test] fn test_mention() { + use serenity::utils::Colour; + use std::sync::{Arc, RwLock}; + let channel = Channel::Guild(Arc::new(RwLock::new(GuildChannel { bitrate: None, guild_id: GuildId(1), |