mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user