mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fixed the .clone() warnings. (#31819)
This commit is contained in:
parent
95e69fe4ff
commit
9b26dca141
28 changed files with 76 additions and 93 deletions
|
@ -33,7 +33,7 @@ impl TransitionEvent {
|
|||
TransitionEvent {
|
||||
event: Event::new_inherited(),
|
||||
property_name: Atom::from(init.propertyName.clone()),
|
||||
elapsed_time: init.elapsedTime.clone(),
|
||||
elapsed_time: init.elapsedTime,
|
||||
pseudo_element: init.pseudoElement.clone(),
|
||||
}
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ impl TransitionEventMethods for TransitionEvent {
|
|||
|
||||
// https://drafts.csswg.org/css-transitions/#Events-TransitionEvent-elapsedTime
|
||||
fn ElapsedTime(&self) -> Finite<f32> {
|
||||
self.elapsed_time.clone()
|
||||
self.elapsed_time
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/css-transitions/#Events-TransitionEvent-pseudoElement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue