mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
clippy: fix some warnings in components/script (#31865)
This commit is contained in:
parent
58f170c97a
commit
188f3caff1
10 changed files with 16 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue