mirror of
https://github.com/servo/servo.git
synced 2025-06-11 01:50:10 +00:00
clippy: Fix option_as_ref_deref warnings (#31936)
This commit is contained in:
parent
c3b6d40f90
commit
a8976ff00a
7 changed files with 17 additions and 31 deletions
|
@ -3359,8 +3359,7 @@ impl ScriptThread {
|
|||
|
||||
let referrer_policy = metadata
|
||||
.headers
|
||||
.as_ref()
|
||||
.map(Serde::deref)
|
||||
.as_deref()
|
||||
.and_then(|h| h.typed_get::<ReferrerPolicyHeader>())
|
||||
.map(ReferrerPolicy::from);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue