mirror of
https://github.com/servo/servo
synced 2026-05-01 11:57:31 +02:00
clippy: Fix option_as_ref_deref warnings (#31936)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user