From 6ddcce4889beb5d3fc8e66475f649420bcbfa941 Mon Sep 17 00:00:00 2001 From: Adam <74212024+amotaouakkil123@users.noreply.github.com> Date: Mon, 11 Aug 2025 04:58:54 -0400 Subject: [PATCH] Replace `Rc>>>>` with `Rc>>>` in `PipeTo::shutdown_error` (#38562) #38024 adds a rooted box around the Heap for safety, but this is not necessary anymore after #38385. The solution is to replace `Rc>>>>` with `Rc>>>`. This changes replaces this type. Signed-off-by: amotaouakkil123 --- components/script/dom/readablestream.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script/dom/readablestream.rs b/components/script/dom/readablestream.rs index b8dda723c7f..833ed565f77 100644 --- a/components/script/dom/readablestream.rs +++ b/components/script/dom/readablestream.rs @@ -154,7 +154,7 @@ pub(crate) struct PipeTo { /// The error potentially passed to shutdown, /// stored here because we must keep it across a microtask. #[ignore_malloc_size_of = "mozjs"] - shutdown_error: Rc>>>>, + shutdown_error: Rc>>>, /// The promise returned by a shutdown action. /// We keep it to only continue when it is not pending anymore. @@ -360,7 +360,7 @@ impl PipeTo { /// Setting shutdown error in a way that ensures it isn't /// moved after it has been set. fn set_shutdown_error(&self, error: SafeHandleValue) { - *self.shutdown_error.borrow_mut() = Some(RootedTraceableBox::new(Heap::default())); + *self.shutdown_error.borrow_mut() = Some(Heap::default()); let Some(ref heap) = *self.shutdown_error.borrow() else { unreachable!("Option set to Some(heap) above."); };