Skip to content

Commit

Permalink
Merge pull request #364 from matthiasbeyer/release-0.13.x-backport-362
Browse files Browse the repository at this point in the history
0.13.x: Backport #362
  • Loading branch information
matthiasbeyer authored Aug 2, 2022
2 parents 588a461 + 475f689 commit 46e6afc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,14 @@ jobs:
needs: [check]
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
minimal: true
toolchain: 1.56.1
override: true
components: clippy

Expand Down
4 changes: 3 additions & 1 deletion tests/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
})
}
Expand Down

0 comments on commit 46e6afc

Please sign in to comment.