aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/response.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/response.rs')
-rw-r--r--components/script/dom/response.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/response.rs b/components/script/dom/response.rs
index bfe7b1af198..5094d042996 100644
--- a/components/script/dom/response.rs
+++ b/components/script/dom/response.rs
@@ -458,7 +458,7 @@ impl Response {
}
}
- #[allow(crown::unrooted_must_root)]
+ #[cfg_attr(crown, allow(crown::unrooted_must_root))]
pub(crate) fn finish(&self) {
if let Some(body) = self.body_stream.get() {
body.controller_close_native();