diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2022-08-02 09:24:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 09:24:27 +0200 |
commit | ab556a90de314ed8fa91840b3159ec124c0a2b35 (patch) | |
tree | 709deab37c96e86e26c69fc31923e6e2194ca739 | |
parent | af537b7c8533460e97bab686744057455663058a (diff) | |
parent | 518a3cafa1e62ba7405709e5c508247e328e0a18 (diff) |
Merge pull request #362 from matthiasbeyer/clippy-on-msrv
Run clippy only on MSRV
-rw-r--r-- | .github/workflows/msrv.yml | 8 | ||||
-rw-r--r-- | tests/env.rs | 4 | ||||
-rw-r--r-- | tests/file_json5.rs | 2 |
3 files changed, 5 insertions, 9 deletions
diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml index fa9cd47..e069266 100644 --- a/.github/workflows/msrv.yml +++ b/.github/workflows/msrv.yml @@ -111,12 +111,6 @@ jobs: needs: [check] name: Clippy runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable - - beta - - nightly steps: - name: Checkout sources uses: actions/checkout@v3.0.2 @@ -124,7 +118,7 @@ jobs: - name: Install toolchain uses: actions-rs/toolchain@v1 with: - toolchain: ${{ matrix.rust }} + toolchain: 1.56.1 override: true components: clippy diff --git a/tests/env.rs b/tests/env.rs index 2ee67de..3a24bde 100644 --- a/tests/env.rs +++ b/tests/env.rs @@ -191,7 +191,9 @@ fn test_parse_float() { // can't use `matches!` because of float value match config { - TestFloatEnum::Float(TestFloat { float_val }) => assert_eq!(float_val, 42.3), + TestFloatEnum::Float(TestFloat { float_val }) => { + assert!(float_cmp::approx_eq!(f64, float_val, 42.3)) + } } }) } diff --git a/tests/file_json5.rs b/tests/file_json5.rs index 4bc17d7..a1cb733 100644 --- a/tests/file_json5.rs +++ b/tests/file_json5.rs @@ -84,7 +84,7 @@ fn test_error_parse() { assert_eq!( res.unwrap_err().to_string(), format!( - " --> 2:7\n |\n2 | ok: true␊\n | ^---\n |\n = expected null in {}", + " --> 2:7\n |\n2 | ok: true\n | ^---\n |\n = expected null in {}", path_with_extension.display() ) ); |