mirror of
https://github.com/servo/servo
synced 2026-04-30 19:37:43 +02:00
Replace allow(crown::unrooted_must_root) with expect(crown::unrooted_must_root) (#41815)
Testing: `./mach build -d --use-crown` with no warnings Fixes: #41761 Signed-off-by: WaterWhisperer <waterwhisperer24@qq.com>
This commit is contained in:
@@ -72,7 +72,6 @@ impl HTMLStyleElement {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(crown, allow(crown::unrooted_must_root))]
|
||||
pub(crate) fn new(
|
||||
local_name: LocalName,
|
||||
prefix: Option<Prefix>,
|
||||
@@ -169,7 +168,7 @@ impl HTMLStyleElement {
|
||||
//
|
||||
// With the reuse of `StylesheetContent` for same stylesheet string content,
|
||||
// this function has a bit difference with `HTMLLinkElement::set_stylesheet` now.
|
||||
#[cfg_attr(crown, allow(crown::unrooted_must_root))]
|
||||
#[cfg_attr(crown, expect(crown::unrooted_must_root))]
|
||||
pub(crate) fn set_stylesheet(
|
||||
&self,
|
||||
s: Arc<Stylesheet>,
|
||||
|
||||
Reference in New Issue
Block a user