mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix more clippy (#32740)
This commit is contained in:
parent
4e1f623666
commit
f29dd64a7b
25 changed files with 72 additions and 90 deletions
|
@ -529,7 +529,7 @@ impl RequestMethods for Request {
|
|||
// https://fetch.spec.whatwg.org/#dom-request-url
|
||||
fn Url(&self) -> USVString {
|
||||
let r = self.request.borrow();
|
||||
USVString(r.url_list.get(0).map_or("", |u| u.as_str()).into())
|
||||
USVString(r.url_list.first().map_or("", |u| u.as_str()).into())
|
||||
}
|
||||
|
||||
// https://fetch.spec.whatwg.org/#dom-request-headers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue