mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix dereferenced warnings (#31770)
This commit is contained in:
parent
0cf2caba06
commit
02a0cdd6fa
43 changed files with 92 additions and 96 deletions
|
@ -86,7 +86,7 @@ impl Request {
|
|||
// Step 5
|
||||
RequestInfo::USVString(USVString(ref usv_string)) => {
|
||||
// Step 5.1
|
||||
let parsed_url = base_url.join(&usv_string);
|
||||
let parsed_url = base_url.join(usv_string);
|
||||
// Step 5.2
|
||||
if parsed_url.is_err() {
|
||||
return Err(Error::Type("Url could not be parsed".to_string()));
|
||||
|
@ -266,11 +266,11 @@ impl Request {
|
|||
|
||||
// Step 25.1
|
||||
if let Some(init_method) = init.method.as_ref() {
|
||||
if !is_method(&init_method) {
|
||||
if !is_method(init_method) {
|
||||
return Err(Error::Type("Method is not a method".to_string()));
|
||||
}
|
||||
// Step 25.2
|
||||
if is_forbidden_method(&init_method) {
|
||||
if is_forbidden_method(init_method) {
|
||||
return Err(Error::Type("Method is forbidden".to_string()));
|
||||
}
|
||||
// Step 25.3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue