mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01: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
|
@ -138,12 +138,11 @@ pub struct WebDriverSession {
|
|||
implicit_wait_timeout: u64,
|
||||
|
||||
page_loading_strategy: String,
|
||||
secure_tls: bool,
|
||||
|
||||
strict_file_interactability: bool,
|
||||
|
||||
unhandled_prompt_behavior: String,
|
||||
|
||||
// https://w3c.github.io/webdriver/#dfn-active-input-sources
|
||||
active_input_sources: Vec<InputSourceState>,
|
||||
// https://w3c.github.io/webdriver/#dfn-input-state-table
|
||||
input_state_table: HashMap<String, InputSourceState>,
|
||||
// https://w3c.github.io/webdriver/#dfn-input-cancel-list
|
||||
|
@ -165,11 +164,9 @@ impl WebDriverSession {
|
|||
implicit_wait_timeout: 0,
|
||||
|
||||
page_loading_strategy: "normal".to_string(),
|
||||
secure_tls: true,
|
||||
strict_file_interactability: false,
|
||||
unhandled_prompt_behavior: "dismiss and notify".to_string(),
|
||||
|
||||
active_input_sources: Vec::new(),
|
||||
input_state_table: HashMap::new(),
|
||||
input_cancel_list: Vec::new(),
|
||||
}
|
||||
|
@ -532,8 +529,8 @@ impl Handler {
|
|||
);
|
||||
|
||||
match processed.get("acceptInsecureCerts") {
|
||||
Some(accept_insecure_certs) => {
|
||||
session.secure_tls = !accept_insecure_certs.as_bool().unwrap()
|
||||
Some(_accept_insecure_certs) => {
|
||||
// FIXME do something here?
|
||||
},
|
||||
None => {
|
||||
processed.insert(
|
||||
|
@ -1374,7 +1371,6 @@ impl Handler {
|
|||
|
||||
let session = self.session_mut()?;
|
||||
session.input_state_table = HashMap::new();
|
||||
session.active_input_sources = Vec::new();
|
||||
|
||||
Ok(WebDriverResponse::Void)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue