Feat: ensure mutabality is okay when not double-using the components

This commit is contained in:
Jonathan Kelley committed 2021-03-12 16:58:30 -05:00
1 parent b3c96a5996
commit 305ff919ef
13 files changed
+120 -114

No files matched your search

+1 -1
View File
@@ -126,7 +126,7 @@ impl Scope {
/// This function downcasts the function pointer based on the stored props_type
///
/// Props is ?Sized because we borrow the props and don't need to know the size. P (sized) is used as a marker (unsized)
pub fn run<'bump>(&'bump mut self) {
pub fn run_scope<'bump>(&'bump mut self) -> Result<()> {
let frame = {
let frame = self.frames.next();
frame.bump.reset();