diff options
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), |