aboutsummaryrefslogtreecommitdiff
path: root/tests/test_formatters.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-06-24 09:31:25 -0700
committerZeyla Hellyer <[email protected]>2017-06-24 09:31:25 -0700
commita2617073f9b0cae1fd5734975bedbfa864d2cfcd (patch)
treef9b9dced423177bbe4f893394d578d2f3a2e9f90 /tests/test_formatters.rs
parentMake Message::nonce a serde_json::Value (diff)
downloadserenity-a2617073f9b0cae1fd5734975bedbfa864d2cfcd.tar.xz
serenity-a2617073f9b0cae1fd5734975bedbfa864d2cfcd.zip
Fix no-feature tests
Diffstat (limited to 'tests/test_formatters.rs')
-rw-r--r--tests/test_formatters.rs6
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),