1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Remove unnecessary clippy lint annotations

We moved to "cargo clippy" in 5ba34d4f97 and
removing the clippy lint annotations in `src/lib.rs` does not cause any additional warnings.

This also changes `cargo clippy` to use the flags required for checking integration tests.
This commit is contained in:
Matthias Krüger 2018-07-01 22:20:29 +02:00 committed by Christian Duerr
parent 12f952df42
commit 985ba306c7
3 changed files with 1 additions and 5 deletions

View file

@ -29,5 +29,5 @@ matrix:
- rust: nightly - rust: nightly
script: 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 - if [ -z "$CLIPPY" ]; then cargo test; fi

View file

@ -110,9 +110,6 @@ impl Mul<f32> 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)] #[allow(unused_mut)]
pub mod gl { pub mod gl {
#![allow(non_upper_case_globals)] #![allow(non_upper_case_globals)]

View file

@ -15,7 +15,6 @@ use std::cmp;
#[cfg(not(feature = "nightly"))] #[cfg(not(feature = "nightly"))]
#[inline(always)] #[inline(always)]
#[cfg_attr(feature = "clippy", allow(inline_always))]
pub unsafe fn unlikely(x: bool) -> bool { pub unsafe fn unlikely(x: bool) -> bool {
x x
} }