diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-08-27 11:21:54 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-08-27 11:22:27 +0300 |
| commit | e5188da1f8e9d0656d8078cc0dc06aa5e41fb4c0 (patch) | |
| tree | bf1ae1c52fbe03201ea34860ad26d559f05f269f /src/tests | |
| parent | 82697773f8e5507dc3982645f805a011996f7cb4 (diff) | |
| download | niri-e5188da1f8e9d0656d8078cc0dc06aa5e41fb4c0.tar.gz niri-e5188da1f8e9d0656d8078cc0dc06aa5e41fb4c0.tar.bz2 niri-e5188da1f8e9d0656d8078cc0dc06aa5e41fb4c0.zip | |
config: Clean up animations struct names
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/animations.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tests/animations.rs b/src/tests/animations.rs index d930d254..90d64dc8 100644 --- a/src/tests/animations.rs +++ b/src/tests/animations.rs @@ -2,7 +2,8 @@ use std::fmt::Write as _; use std::time::Duration; use insta::assert_snapshot; -use niri_config::{AnimationCurve, AnimationKind, Config, EasingParams, FloatOrInt}; +use niri_config::animations::{Curve, EasingParams, Kind}; +use niri_config::{Config, FloatOrInt}; use niri_ipc::SizeChange; use smithay::utils::{Point, Size}; use wayland_client::protocol::wl_surface::WlSurface; @@ -73,9 +74,9 @@ fn set_time(niri: &mut Niri, time: Duration) { // Sets up a fixture with linear animations, a renderer, and an output. fn set_up() -> Fixture { - const LINEAR: AnimationKind = AnimationKind::Easing(EasingParams { + const LINEAR: Kind = Kind::Easing(EasingParams { duration_ms: 1000, - curve: AnimationCurve::Linear, + curve: Curve::Linear, }); let mut config = Config::default(); |
