فهرست منبع

fix: ci not passing

Jonathan Kelley 2 سال پیش
والد
کامیت
39c4f3f814
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 2 0
      packages/core/src/bump_frame.rs
  2. 1 1
      packages/core/src/scopes.rs

+ 2 - 0
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() }
     }

+ 1 - 1
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