From 3545c14a381d766e9dcfa391666a7d449d453f2c Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Tue, 9 Jan 2024 11:36:45 -0600 Subject: [PATCH] fix formatting --- packages/core/src/lib.rs | 4 ++-- packages/core/src/scope_context.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/core/src/lib.rs b/packages/core/src/lib.rs index 6708b3b60..df53bfaff 100644 --- a/packages/core/src/lib.rs +++ b/packages/core/src/lib.rs @@ -74,8 +74,8 @@ pub(crate) mod innerlude { pub use crate::innerlude::{ fc_to_builder, generation, once, schedule_update, schedule_update_any, vdom_is_rendering, AnyValue, Attribute, AttributeValue, CapturedError, Component, DynamicNode, Element, ElementId, - Event, Fragment, IntoDynNode, Mutation, MutationsVec, Properties, ScopeId, Task, - Template, TemplateAttribute, TemplateNode, VComponent, VNode, VNodeInner, VPlaceholder, VText, + Event, Fragment, IntoDynNode, Mutation, MutationsVec, Properties, ScopeId, Task, Template, + TemplateAttribute, TemplateNode, VComponent, VNode, VNodeInner, VPlaceholder, VText, VirtualDom, WriteMutations, }; diff --git a/packages/core/src/scope_context.rs b/packages/core/src/scope_context.rs index 32e5faef0..4e15cb31c 100644 --- a/packages/core/src/scope_context.rs +++ b/packages/core/src/scope_context.rs @@ -114,7 +114,7 @@ impl ScopeContext { } let mut search_parent = self.parent_id; - match with_runtime(|runtime: &crate::runtime::Runtime| { + let context = with_runtime(|runtime: &crate::runtime::Runtime| { while let Some(parent_id) = search_parent { let parent = runtime.get_context(parent_id).unwrap(); tracing::trace!( @@ -133,8 +133,8 @@ impl ScopeContext { } None }) - .flatten() - { + .flatten(); + match context { Some(ctx) => Some(ctx), None => { tracing::trace!(