chore: undo dirty_scopes rename

This commit is contained in:
Jonathan Kelley committed 2022-01-31 02:52:40 -05:00
1 parent 236ef9a8c4
commit a4ea0ba4fe
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -17,7 +17,7 @@ use std::{any::Any, fmt::Debug};
/// Mutations are the only link between the RealDOM and the VirtualDOM. /// Mutations are the only link between the RealDOM and the VirtualDOM.
pub struct Mutations<'a> { pub struct Mutations<'a> {
pub edits: Vec<DomEdit<'a>>, pub edits: Vec<DomEdit<'a>>,
pub diffed_scopes: FxHashSet<ScopeId>, pub dirty_scopes: FxHashSet<ScopeId>,
pub refs: Vec<NodeRefMutation<'a>>, pub refs: Vec<NodeRefMutation<'a>>,
} }
@@ -118,7 +118,7 @@ impl<'a> Mutations<'a> {
Self { Self {
edits: Vec::new(), edits: Vec::new(),
refs: Vec::new(), refs: Vec::new(),
diffed_scopes: Default::default(), dirty_scopes: Default::default(),
} }
} }
@@ -223,7 +223,7 @@ impl<'a> Mutations<'a> {
} }
pub(crate) fn mark_dirty_scope(&mut self, scope: ScopeId) { pub(crate) fn mark_dirty_scope(&mut self, scope: ScopeId) {
self.diffed_scopes.insert(scope); self.dirty_scopes.insert(scope);
} }
} }
+2 -2
View File
@@ -480,8 +480,8 @@ impl VirtualDom {
let AsyncDiffState { mutations, .. } = diff_state; let AsyncDiffState { mutations, .. } = diff_state;
log::debug!("succesffuly resolved scopes {:?}", mutations.diffed_scopes); log::debug!("succesffuly resolved scopes {:?}", mutations.dirty_scopes);
for scope in &mutations.diffed_scopes { for scope in &mutations.dirty_scopes {
self.dirty_scopes.remove(scope); self.dirty_scopes.remove(scope);
} }