clippy: fix some warnings in components/script (#31865)

This commit is contained in:
Ekta Siwach 2024-03-26 16:01:22 +05:30 committed by GitHub
parent 58f170c97a
commit 188f3caff1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 16 additions and 16 deletions

View file

@ -32,7 +32,7 @@ impl AnimationEvent {
AnimationEvent {
event: Event::new_inherited(),
animation_name: Atom::from(init.animationName.clone()),
elapsed_time: init.elapsedTime.clone(),
elapsed_time: init.elapsedTime,
pseudo_element: init.pseudoElement.clone(),
}
}
@ -78,7 +78,7 @@ impl AnimationEventMethods for AnimationEvent {
// https://drafts.csswg.org/css-animations/#interface-animationevent-attributes
fn ElapsedTime(&self) -> Finite<f32> {
self.elapsed_time.clone()
self.elapsed_time
}
// https://drafts.csswg.org/css-animations/#interface-animationevent-attributes