diff --git a/.travis.yml b/.travis.yml index 2b6192d..2dd8a4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,5 +29,5 @@ matrix: - rust: nightly script: - - if [ -n "$CLIPPY" ]; then cargo clippy; fi + - if [ -n "$CLIPPY" ]; then cargo clippy --all-features --all-targets; fi - if [ -z "$CLIPPY" ]; then cargo test; fi diff --git a/src/lib.rs b/src/lib.rs index afbd859..d6229ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -110,9 +110,6 @@ impl Mul for Rgb { } -#[cfg_attr(feature = "clippy", allow(too_many_arguments))] -#[cfg_attr(feature = "clippy", allow(doc_markdown))] -#[cfg_attr(feature = "clippy", allow(unreadable_literal))] #[allow(unused_mut)] pub mod gl { #![allow(non_upper_case_globals)] diff --git a/src/util.rs b/src/util.rs index 062e765..6065e01 100644 --- a/src/util.rs +++ b/src/util.rs @@ -15,7 +15,6 @@ use std::cmp; #[cfg(not(feature = "nightly"))] #[inline(always)] -#[cfg_attr(feature = "clippy", allow(inline_always))] pub unsafe fn unlikely(x: bool) -> bool { x }