diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml index fa9cd472..e0692668 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 2ee67de5..3a24bde5 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 4bc17d71..a1cb7332 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() ) );