fix: ci not passing

This commit is contained in:
Jonathan Kelley 2023-01-10 16:39:56 -08:00
parent faf94c7b4e
commit 39c4f3f814
2 changed files with 3 additions and 1 deletions

View file

@ -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() }
}

View file

@ -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