mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
clippy: Fix a few problems in components/scripts
(#31959)
* fixed various clippy warnings * fixed various clippy warnings
This commit is contained in:
parent
00c4d798c9
commit
52a74287fc
5 changed files with 6 additions and 6 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue