File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -222,10 +222,7 @@ fn effect_builder_creates_rumble_with_direction() {
222222 match effect {
223223 Effect :: Rumble ( r) => {
224224 assert_eq ! ( r. duration, 2000 ) ;
225- assert_eq ! (
226- r. direction,
227- ( ( 90.0f64 / 360.0f64 ) * 65535.0f64 ) as u16
228- ) ;
225+ assert_eq ! ( r. direction, ( ( 90.0f64 / 360.0f64 ) * 65535.0f64 ) as u16 ) ;
229226 }
230227 _ => panic ! ( "Expected Rumble effect from builder" ) ,
231228 }
@@ -239,10 +236,7 @@ fn effect_builder_creates_periodic_effect() {
239236
240237 match effect {
241238 Effect :: Periodic ( p) => {
242- assert_eq ! (
243- p. direction,
244- ( ( 180.0f64 / 360.0f64 ) * 65535.0f64 ) as u16
245- ) ;
239+ assert_eq ! ( p. direction, ( ( 180.0f64 / 360.0f64 ) * 65535.0f64 ) as u16 ) ;
246240 assert ! ( matches!( p. waveform, PeriodicWaveform :: Sine ) ) ;
247241 }
248242 _ => panic ! ( "Expected Periodic effect from builder" ) ,
You can’t perform that action at this time.
0 commit comments