diff --git a/ci/script.sh b/ci/script.sh index ee3383d1..8e594ac0 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -5,7 +5,7 @@ set -ex # TODO This is the "test phase", tweak it as you see fit main() { cargo fmt --all -- --check - cargo clippy --all-targets --all-features -- -D warnings + cargo clippy --all-targets --all-features cross check --target $TARGET cross check --target $TARGET --release diff --git a/src/main.rs b/src/main.rs index 6760b94b..c09841de 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "cargo-clippy", deny(clippy::all))] + extern crate directories; extern crate failure; extern crate which;