File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -114,21 +114,14 @@ jobs:
114114 needs : [check]
115115 name : Clippy
116116 runs-on : ubuntu-latest
117- strategy :
118- matrix :
119- rust :
120- - stable
121- - beta
122- - nightly
123117 steps :
124118 - name : Checkout sources
125119 uses : actions/checkout@v3
126120
127121 - name : Install toolchain
128122 uses : actions-rs/toolchain@v1
129123 with :
130- toolchain : ${{ matrix.rust }}
131- minimal : true
124+ toolchain : 1.56.1
132125 override : true
133126 components : clippy
134127
Original file line number Diff line number Diff line change @@ -191,7 +191,9 @@ fn test_parse_float() {
191191
192192 // can't use `matches!` because of float value
193193 match config {
194- TestFloatEnum :: Float ( TestFloat { float_val } ) => assert_eq ! ( float_val, 42.3 ) ,
194+ TestFloatEnum :: Float ( TestFloat { float_val } ) => {
195+ assert ! ( float_cmp:: approx_eq!( f64 , float_val, 42.3 ) )
196+ }
195197 }
196198 } )
197199}
You can’t perform that action at this time.
0 commit comments