Skip to content

Commit 1fcda0e

Browse files
committed
Enable pedantic lints on test suite in CI
1 parent 8f16ac0 commit 1fcda0e

File tree

9 files changed

+23
-3
lines changed

9 files changed

+23
-3
lines changed

Diff for: .github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,5 +159,5 @@ jobs:
159159
- run: cd serde_derive && cargo clippy -- -Dclippy::all -Dclippy::pedantic
160160
- run: cd serde_derive_internals && cargo clippy -- -Dclippy::all -Dclippy::pedantic
161161
- 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
162+
- run: cd test_suite && cargo clippy --tests --features unstable -- -Dclippy::all -Dclippy::pedantic -Aclippy::redundant_field_names
163+
- run: cd test_suite/no_std && cargo clippy -- -Dclippy::all -Dclippy::pedantic -Aclippy::redundant_field_names

Diff for: test_suite/tests/test_annotations.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
clippy::from_over_into,
44
// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422
55
clippy::nonstandard_macro_braces,
6+
clippy::too_many_lines,
67
clippy::trivially_copy_pass_by_ref
78
)]
89

Diff for: test_suite/tests/test_borrow.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::items_after_statements, clippy::used_underscore_binding)]
2+
13
use serde::{Deserialize, Deserializer};
24
use serde_test::{assert_de_tokens, assert_de_tokens_error, Token};
35

Diff for: test_suite/tests/test_de.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#![allow(
22
clippy::decimal_literal_representation,
3+
clippy::empty_enum,
34
clippy::manual_assert,
5+
clippy::needless_pass_by_value,
46
clippy::unreadable_literal
57
)]
68
#![cfg_attr(feature = "unstable", feature(never_type))]

Diff for: test_suite/tests/test_gen.rs

+5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@
66
#![allow(
77
unknown_lints,
88
mixed_script_confusables,
9+
clippy::items_after_statements,
10+
clippy::missing_errors_doc,
11+
clippy::missing_panics_doc,
12+
clippy::must_use_candidate,
913
// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422
1014
clippy::nonstandard_macro_braces,
1115
clippy::ptr_arg,
16+
clippy::too_many_lines,
1217
clippy::trivially_copy_pass_by_ref
1318
)]
1419

Diff for: test_suite/tests/test_macros.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#![deny(trivial_numeric_casts)]
2-
#![allow(clippy::enum_variant_names, clippy::redundant_field_names)]
2+
#![allow(
3+
clippy::enum_variant_names,
4+
clippy::redundant_field_names,
5+
clippy::too_many_lines
6+
)]
37

48
mod bytes;
59

Diff for: test_suite/tests/test_self.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::used_underscore_binding)]
2+
13
use serde::{Deserialize, Serialize};
24

35
#[test]

Diff for: test_suite/tests/test_serde_path.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::type_repetition_in_bounds)]
2+
13
#[test]
24
fn test_gen_custom_serde() {
35
#[derive(serde::Serialize, serde::Deserialize)]

Diff for: test_suite/tests/test_value.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::similar_names)]
2+
13
use serde::de::value::{self, MapAccessDeserializer};
24
use serde::de::{IntoDeserializer, MapAccess, Visitor};
35
use serde::{Deserialize, Deserializer};

0 commit comments

Comments
 (0)