aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/animationevent.rs
diff options
context:
space:
mode:
authorEkta Siwach <137225906+ektuu@users.noreply.github.com>2024-03-26 16:01:22 +0530
committerGitHub <noreply@github.com>2024-03-26 10:31:22 +0000
commit188f3caff168a217b0cff3641cb2dbff232cea1c (patch)
tree60972e5fd21f8e1512afe3dc0b27818f05178503 /components/script/dom/animationevent.rs
parent58f170c97ab0715d7ca4833f7ec17d80f435d627 (diff)
downloadservo-188f3caff168a217b0cff3641cb2dbff232cea1c.tar.gz
servo-188f3caff168a217b0cff3641cb2dbff232cea1c.zip
clippy: fix some warnings in components/script (#31865)
Diffstat (limited to 'components/script/dom/animationevent.rs')
-rw-r--r--components/script/dom/animationevent.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/animationevent.rs b/components/script/dom/animationevent.rs
index 648ed52690f..e57cb03c7d0 100644
--- a/components/script/dom/animationevent.rs
+++ b/components/script/dom/animationevent.rs
@@ -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