mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
fix many clippy warnings (#33510)
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
parent
4e4b137eaa
commit
f986160ed4
13 changed files with 29 additions and 34 deletions
|
@ -478,7 +478,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
|
|||
let name_str = name.as_str().ok_or(Error::Syntax)?;
|
||||
|
||||
// Step 5: If (name, value) is a forbidden request-header, then return.
|
||||
if is_forbidden_request_header(name_str, &value) {
|
||||
if is_forbidden_request_header(name_str, value) {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue