remove usage of legacy numeric operations in script (#33095)

These operations are deprecated and might be removed
in a future rust version. Clippy is also complaining
about them.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2024-08-16 23:30:13 +02:00 committed by GitHub
parent 09cac6430b
commit f0045a7686
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 11 deletions

View file

@ -422,7 +422,7 @@ impl Animations {
let active_duration = match animation.iteration_state {
KeyframesIterationState::Finite(_, max) => max * animation.duration,
KeyframesIterationState::Infinite(_) => std::f64::MAX,
KeyframesIterationState::Infinite(_) => f64::MAX,
};
// Calculate the `elapsed-time` property of the event and take the absolute