From 39c4f3f814e493499e283ea7b8ad9946047529a5 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Tue, 10 Jan 2023 16:39:56 -0800 Subject: [PATCH] fix: ci not passing --- packages/core/src/bump_frame.rs | 2 ++ packages/core/src/scopes.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/bump_frame.rs b/packages/core/src/bump_frame.rs index 147fc5f06..0fe7b3867 100644 --- a/packages/core/src/bump_frame.rs +++ b/packages/core/src/bump_frame.rs @@ -30,6 +30,8 @@ impl BumpFrame { pub(crate) fn bump(&self) -> &Bump { unsafe { &*self.bump.get() } } + + #[allow(clippy::mut_from_ref)] pub(crate) unsafe fn bump_mut(&self) -> &mut Bump { unsafe { &mut *self.bump.get() } } diff --git a/packages/core/src/scopes.rs b/packages/core/src/scopes.rs index f77236f33..2f18d14bd 100644 --- a/packages/core/src/scopes.rs +++ b/packages/core/src/scopes.rs @@ -131,7 +131,7 @@ impl<'src> ScopeState { /// If you need to allocate items that need to be dropped, use bumpalo's box. pub fn bump(&self) -> &Bump { // note that this is actually the previous frame since we use that as scratch space while the component is rendering - &self.previous_frame().bump() + self.previous_frame().bump() } /// Get a handle to the currently active head node arena for this Scope