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

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

Testing: Refactor
Part of: #40383

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
Ashwin Naren
2025-11-04 10:29:06 -08:00
committed by GitHub
parent 2d89cd7471
commit 3e97cd2d2c
28 changed files with 74 additions and 88 deletions

View File

@@ -597,7 +597,6 @@ pub(crate) struct Document {
websockets: DOMTracker<WebSocket>,
}
#[allow(non_snake_case)]
impl Document {
/// <https://html.spec.whatwg.org/multipage/#unloading-document-cleanup-steps>
fn unloading_cleanup_steps(&self) {
@@ -3199,7 +3198,6 @@ pub(crate) enum DocumentSource {
NotFromParser,
}
#[allow(unsafe_code)]
pub(crate) trait LayoutDocumentHelpers<'dom> {
fn is_html_document_for_layout(&self) -> bool;
fn quirks_mode(self) -> QuirksMode;