Don't forget to update insta snapshots
Browse files at this commita18d24fc24d8b17242e336ccf39fcbe91e8161fdParent: 2bacc801 changed file +15 -5
- niri-config/src/lib.rs +15 -5
niri-config/src/lib.rsmodified+15 -5
| @@ -4218,7 +4218,9 @@ mod tests { | |||
| 4218 | click_method: Some( | 4218 | click_method: Some( |
| 4219 | Clickfinger, | 4219 | Clickfinger, |
| 4220 | ), | 4220 | ), |
| 4221 | - accel_speed: 0.2, | 4221 | + accel_speed: FloatOrInt( |
| 4222 | + 0.2, | ||
| 4223 | + ), | ||
| 4222 | accel_profile: Some( | 4224 | accel_profile: Some( |
| 4223 | Flat, | 4225 | Flat, |
| 4224 | ), | 4226 | ), |
| @@ -4243,7 +4245,9 @@ mod tests { | |||
| 4243 | mouse: Mouse { | 4245 | mouse: Mouse { |
| 4244 | off: false, | 4246 | off: false, |
| 4245 | natural_scroll: true, | 4247 | natural_scroll: true, |
| 4246 | - accel_speed: 0.4, | 4248 | + accel_speed: FloatOrInt( |
| 4249 | + 0.4, | ||
| 4250 | + ), | ||
| 4247 | accel_profile: Some( | 4251 | accel_profile: Some( |
| 4248 | Flat, | 4252 | Flat, |
| 4249 | ), | 4253 | ), |
| @@ -4264,7 +4268,9 @@ mod tests { | |||
| 4264 | trackpoint: Trackpoint { | 4268 | trackpoint: Trackpoint { |
| 4265 | off: true, | 4269 | off: true, |
| 4266 | natural_scroll: true, | 4270 | natural_scroll: true, |
| 4267 | - accel_speed: 0.0, | 4271 | + accel_speed: FloatOrInt( |
| 4272 | + 0.0, | ||
| 4273 | + ), | ||
| 4268 | accel_profile: Some( | 4274 | accel_profile: Some( |
| 4269 | Flat, | 4275 | Flat, |
| 4270 | ), | 4276 | ), |
| @@ -4280,7 +4286,9 @@ mod tests { | |||
| 4280 | trackball: Trackball { | 4286 | trackball: Trackball { |
| 4281 | off: true, | 4287 | off: true, |
| 4282 | natural_scroll: true, | 4288 | natural_scroll: true, |
| 4283 | - accel_speed: 0.0, | 4289 | + accel_speed: FloatOrInt( |
| 4290 | + 0.0, | ||
| 4291 | + ), | ||
| 4284 | accel_profile: Some( | 4292 | accel_profile: Some( |
| 4285 | Flat, | 4293 | Flat, |
| 4286 | ), | 4294 | ), |
| @@ -4635,7 +4643,9 @@ mod tests { | |||
| 4635 | }, | 4643 | }, |
| 4636 | animations: Animations { | 4644 | animations: Animations { |
| 4637 | off: false, | 4645 | off: false, |
| 4638 | - slowdown: 2.0, | 4646 | + slowdown: FloatOrInt( |
| 4647 | + 2.0, | ||
| 4648 | + ), | ||
| 4639 | workspace_switch: WorkspaceSwitchAnim( | 4649 | workspace_switch: WorkspaceSwitchAnim( |
| 4640 | Animation { | 4650 | Animation { |
| 4641 | off: false, | 4651 | off: false, |