mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix warnings introduced in newer Rust Nightly
This does not (yet) upgrade ./rust-toolchain The warnings: * dead_code "field is never read" * redundant_semicolons "unnecessary trailing semicolon" * non_fmt_panic "panic message is not a string literal, this is no longer accepted in Rust 2021" * unstable_name_collisions "a method with this name may be added to the standard library in the future" * legacy_derive_helpers "derive helper attribute is used before it is introduced" https://github.com/rust-lang/rust/issues/79202
This commit is contained in:
parent
4353d534d4
commit
a0d9f97c8e
35 changed files with 75 additions and 116 deletions
|
@ -11,13 +11,12 @@ use msg::constellation_msg::PipelineId;
|
|||
use serde_json::{Map, Value};
|
||||
use std::mem;
|
||||
use std::net::TcpStream;
|
||||
use time::precise_time_ns;
|
||||
|
||||
pub struct FramerateActor {
|
||||
name: String,
|
||||
pipeline: PipelineId,
|
||||
script_sender: IpcSender<DevtoolScriptControlMsg>,
|
||||
start_time: Option<u64>,
|
||||
|
||||
is_recording: bool,
|
||||
ticks: Vec<HighResolutionStamp>,
|
||||
}
|
||||
|
@ -51,7 +50,6 @@ impl FramerateActor {
|
|||
name: actor_name.clone(),
|
||||
pipeline: pipeline_id,
|
||||
script_sender: script_sender,
|
||||
start_time: None,
|
||||
is_recording: false,
|
||||
ticks: Vec::new(),
|
||||
};
|
||||
|
@ -79,7 +77,6 @@ impl FramerateActor {
|
|||
return;
|
||||
}
|
||||
|
||||
self.start_time = Some(precise_time_ns());
|
||||
self.is_recording = true;
|
||||
|
||||
let msg = DevtoolScriptControlMsg::RequestAnimationFrame(self.pipeline, self.name());
|
||||
|
@ -91,7 +88,6 @@ impl FramerateActor {
|
|||
return;
|
||||
}
|
||||
self.is_recording = false;
|
||||
self.start_time = None;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue