diff options
author | eri <eri@inventati.org> | 2024-03-05 19:19:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 18:19:04 +0000 |
commit | 3552bb2464cbaa57facbcb9ad2bcb266bc5a87f6 (patch) | |
tree | e2a91e49e76dbf6a01a7248cad62e1503ea64a50 /components/devtools/actors/framerate.rs | |
parent | da873779b496c9a1236cd92388efb1316f97e3d6 (diff) | |
download | servo-3552bb2464cbaa57facbcb9ad2bcb266bc5a87f6.tar.gz servo-3552bb2464cbaa57facbcb9ad2bcb266bc5a87f6.zip |
clippy: Fix several warnings in components/devtools (#31501)
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) { |