mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix several warnings in components/devtools (#31501)
This commit is contained in:
parent
da873779b4
commit
3552bb2464
18 changed files with 85 additions and 86 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue