script/dom/: Change some #[allow]s to #[expect]s (#40454)

Removes some unneeded lints, especially `#[allow(unsafe_code)]`.

Testing: Refactor
Part of: #40383

Signed-off-by: WaterWhisperer <waterwhisperer24@qq.com>
This commit is contained in:
WaterWhisperer
2025-11-06 19:06:03 +08:00
committed by GitHub
parent 900f0605bc
commit 158bf97e30
113 changed files with 241 additions and 307 deletions

View File

@@ -390,7 +390,6 @@ impl FetchResponseListener for ClassicContext {
/// <https://html.spec.whatwg.org/multipage/#fetch-a-classic-script>
/// step 4-9
#[allow(unsafe_code)]
fn process_response_eof(
&mut self,
_: RequestId,
@@ -1095,7 +1094,6 @@ impl HTMLScriptElement {
}
}
#[allow(unsafe_code)]
/// <https://html.spec.whatwg.org/multipage/#run-a-module-script>
pub(crate) fn run_a_module_script(
&self,