From 8f58e3f64511eefb024b0cdfec5119269bf6f594 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 30 Sep 2021 01:27:18 -0400 Subject: [PATCH] Run clippy on test suite too --- .github/workflows/ci.yml | 2 +- tests/test.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07122af..7b929f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,4 +51,4 @@ jobs: steps: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@clippy - - run: cargo clippy -- -Dclippy::all -Dclippy::pedantic + - run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic diff --git a/tests/test.rs b/tests/test.rs index 5355868..da33b5a 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1,4 +1,7 @@ -#![cfg_attr(feature = "cargo-clippy", allow(cast_lossless, string_lit_as_bytes))] +#![cfg_attr( + feature = "cargo-clippy", + allow(cast_lossless, string_lit_as_bytes, unseparated_literal_suffix) +)] #![allow(non_snake_case)] extern crate itoa;