Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

Commit c82a38d

Browse files
committed
Apply clippy to test suite
1 parent 7a04d41 commit c82a38d

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v2
3737
- uses: dtolnay/rust-toolchain@clippy
38-
- run: cargo clippy -- -Dclippy::pedantic
38+
- run: cargo clippy --tests -- -Dclippy::pedantic
3939

4040
fuzz:
4141
name: Fuzz

‎tests/test_de.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::cast_lossless, clippy::cast_possible_wrap)]
2+
13
use indoc::indoc;
24
use serde::serde_if_integer128;
35
use serde_derive::Deserialize;

‎tests/test_serde.rs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#![allow(clippy::decimal_literal_representation, clippy::unreadable_literal)]
1+
#![allow(
2+
clippy::decimal_literal_representation,
3+
clippy::unreadable_literal,
4+
clippy::shadow_unrelated
5+
)]
26

37
use indoc::indoc;
48
use serde::serde_if_integer128;

‎tests/test_value.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::eq_op)]
2+
13
use serde_yaml::{Number, Value};
24
use std::f64;
35

0 commit comments

Comments
 (0)