mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
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:
parent
09cac6430b
commit
f0045a7686
4 changed files with 8 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue