diff options
Diffstat (limited to 'components/script/dom/file.rs')
-rw-r--r-- | components/script/dom/file.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs index f3f78fe2c7f..780cadbfa1f 100644 --- a/components/script/dom/file.rs +++ b/components/script/dom/file.rs @@ -31,7 +31,7 @@ pub(crate) struct File { } impl File { - #[allow(crown::unrooted_must_root)] + #[cfg_attr(crown, allow(crown::unrooted_must_root))] fn new_inherited(blob_impl: &BlobImpl, name: DOMString, modified: Option<SystemTime>) -> File { File { blob: Blob::new_inherited(blob_impl), @@ -51,7 +51,7 @@ impl File { Self::new_with_proto(global, None, blob_impl, name, modified, can_gc) } - #[allow(crown::unrooted_must_root)] + #[cfg_attr(crown, allow(crown::unrooted_must_root))] fn new_with_proto( global: &GlobalScope, proto: Option<HandleObject>, |