aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-10-10 21:09:17 -0700
committerZeyla Hellyer <[email protected]>2017-10-11 20:59:34 -0700
commit483b069cc0c821ec673ac475b168809e3a41525a (patch)
tree32fc42c8c0a5d65cd81b8044dd60e9e73a26f526 /tests
parentAdd env_logger bot example (diff)
downloadserenity-483b069cc0c821ec673ac475b168809e3a41525a.tar.xz
serenity-483b069cc0c821ec673ac475b168809e3a41525a.zip
Fix clippy lints
Diffstat (limited to 'tests')
-rw-r--r--tests/test_colour.rs2
-rw-r--r--tests/test_create_embed.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_colour.rs b/tests/test_colour.rs
index c26bf23..2b36562 100644
--- a/tests/test_colour.rs
+++ b/tests/test_colour.rs
@@ -1,4 +1,4 @@
-#![allow(unreadable_literal)]
+#![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))]
#![cfg(feature = "utils")]
extern crate serenity;
diff --git a/tests/test_create_embed.rs b/tests/test_create_embed.rs
index e20308e..8cc0de7 100644
--- a/tests/test_create_embed.rs
+++ b/tests/test_create_embed.rs
@@ -1,4 +1,4 @@
-#![allow(unreadable_literal)]
+#![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))]
#![cfg(feature = "utils")]
#[macro_use]