Skip to content

Commit 8f16ac0

Browse files
committed
Move deny(clippy) to command line arguments in the CI job
1 parent 737f78c commit 8f16ac0

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ jobs:
155155
- uses: dtolnay/rust-toolchain@clippy
156156
# The need for -Aredundant_field_names here is a Clippy bug.
157157
# https://github.com/rust-lang/rust-clippy/issues/5356
158-
- run: cd serde && cargo clippy --features rc,unstable -- -D clippy::all -A clippy::redundant_field_names
159-
- run: cd serde_derive && cargo clippy -- -D clippy::all
160-
- run: cd serde_derive_internals && cargo clippy -- -D clippy::all
161-
- run: cd serde_test && cargo clippy -- -D clippy::all -A clippy::redundant_field_names
162-
- run: cd test_suite && cargo clippy --tests --features unstable -- -D clippy::all -A clippy::redundant_field_names
163-
- run: cd test_suite/no_std && cargo clippy -- -D clippy::all -A clippy::redundant_field_names
158+
- run: cd serde && cargo clippy --features rc,unstable -- -Dclippy::all -Dclippy::pedantic -Aclippy::redundant_field_names
159+
- run: cd serde_derive && cargo clippy -- -Dclippy::all -Dclippy::pedantic
160+
- run: cd serde_derive_internals && cargo clippy -- -Dclippy::all -Dclippy::pedantic
161+
- run: cd serde_test && cargo clippy -- -Dclippy::all -Dclippy::pedantic -Aclippy::redundant_field_names
162+
- run: cd test_suite && cargo clippy --tests --features unstable -- -Dclippy::all -Aclippy::redundant_field_names
163+
- run: cd test_suite/no_std && cargo clippy -- -Dclippy::all -Aclippy::redundant_field_names

serde/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
#![cfg_attr(feature = "unstable", feature(never_type))]
9595
#![allow(unknown_lints, bare_trait_objects, deprecated)]
9696
#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
97-
#![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]
9897
// Ignored clippy and clippy_pedantic lints
9998
#![cfg_attr(
10099
feature = "cargo-clippy",

serde_derive/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
1616
#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.130")]
1717
#![allow(unknown_lints, bare_trait_objects)]
18-
#![deny(clippy::all, clippy::pedantic)]
1918
// Ignored clippy lints
2019
#![allow(
2120
// clippy false positive: https://github.com/rust-lang/rust-clippy/issues/7054

serde_derive_internals/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![doc(html_root_url = "https://docs.rs/serde_derive_internals/0.26.0")]
22
#![allow(unknown_lints, bare_trait_objects)]
3-
#![deny(clippy::all, clippy::pedantic)]
43
// Ignored clippy lints
54
#![allow(
65
clippy::cognitive_complexity,

serde_test/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@
146146
147147
#![doc(html_root_url = "https://docs.rs/serde_test/1.0.130")]
148148
#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
149-
#![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]
150149
// Ignored clippy lints
151150
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, needless_doctest_main))]
152151
// Ignored clippy_pedantic lints

0 commit comments

Comments
 (0)