From 5deda517c808e8dc7f51ee6f7739aad8c76d7dcf Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Tue, 5 Feb 2019 23:04:05 +0100 Subject: [PATCH] lint with clippy during travis --- .travis.yml | 7 ++++++- src/lib.rs | 9 ++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8b0a895..0b1c774 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,9 @@ rust: - stable - beta - 1.30.0 # The minimal Rust version we claim we need. - +before_script: + # Get clippy-preview if clippy is not available for 1.30.0 not to break + - rustup component add clippy || rustup component add clippy-preview +script: + - cargo clippy -- -D warnings + - cargo test --verbose diff --git a/src/lib.rs b/src/lib.rs index d163320..af4fb69 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,14 @@ //! //! This crate contains all the moving parts of the Routinator. The //! application itself, via `main.rs` is only a very tiny frontend. -#![allow(unknown_lints)] // Clippy for 1.30. + +// Clippy due to multi-versioning +#![allow(renamed_and_removed_lints)] + +// Clippy for 1.30. +#![allow(unknown_lints)] +#![allow(needless_pass_by_value)] +#![allow(map_clone)] extern crate bytes; extern crate chrono;