aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorRosemary Ajayi <okhuomonajayi54@gmail.com>2024-04-01 05:34:48 +0000
committerGitHub <noreply@github.com>2024-04-01 05:34:48 +0000
commit52a74287fc3f13f855cdf24c8610cf902a49686b (patch)
treeb4e70ec04db97821ae3a79bfe777772c9c31098e /components/script/script_thread.rs
parent00c4d798c9619e068119db02910ed80ad9df937b (diff)
downloadservo-52a74287fc3f13f855cdf24c8610cf902a49686b.tar.gz
servo-52a74287fc3f13f855cdf24c8610cf902a49686b.zip
clippy: Fix a few problems in `components/scripts` (#31959)
* fixed various clippy warnings * fixed various clippy warnings
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 743d9226302..84bf1b36918 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -3108,7 +3108,7 @@ impl ScriptThread {
)
});
- let opener_browsing_context = opener.and_then(|id| ScriptThread::find_window_proxy(id));
+ let opener_browsing_context = opener.and_then(ScriptThread::find_window_proxy);
let creator = CreatorBrowsingContextInfo::from(
parent_browsing_context.as_deref(),
@@ -3164,7 +3164,7 @@ impl ScriptThread {
_ => None,
};
- let opener_browsing_context = opener.and_then(|id| ScriptThread::find_window_proxy(id));
+ let opener_browsing_context = opener.and_then(ScriptThread::find_window_proxy);
let creator = CreatorBrowsingContextInfo::from(
parent_browsing_context.as_deref(),