diff options
Diffstat (limited to 'components/devtools/actors/framerate.rs')
-rw-r--r-- | components/devtools/actors/framerate.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/devtools/actors/framerate.rs b/components/devtools/actors/framerate.rs index 607222489fa..5428a5cba67 100644 --- a/components/devtools/actors/framerate.rs +++ b/components/devtools/actors/framerate.rs @@ -51,7 +51,7 @@ impl FramerateActor { let mut actor = FramerateActor { name: actor_name.clone(), pipeline: pipeline_id, - script_sender: script_sender, + script_sender, is_recording: false, ticks: Vec::new(), }; @@ -71,7 +71,7 @@ impl FramerateActor { } pub fn take_pending_ticks(&mut self) -> Vec<HighResolutionStamp> { - mem::replace(&mut self.ticks, Vec::new()) + mem::take(&mut self.ticks) } fn start_recording(&mut self) { |