From 3feb8c33448f3a74a818aeac8e3dc91b40f9ae61 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Thu, 13 Dec 2018 15:39:39 -0800 Subject: [PATCH] Fix midnight naming --- server/src/rbx_snapshot.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/server/src/rbx_snapshot.rs b/server/src/rbx_snapshot.rs index 37e790a0..b8b3f32f 100644 --- a/server/src/rbx_snapshot.rs +++ b/server/src/rbx_snapshot.rs @@ -119,10 +119,12 @@ fn reconcile_instance_children(tree: &mut RbxTree, id: RbxId, snapshot: &RbxSnap let mut children_to_remove = Vec::new(); for i in 0..child_count { - let instance_child_foo = children_ids.get(i).map(|&id| tree.get_instance_mut(id).unwrap()); - let snapshot_child_foo = snapshot.children.get(i); + let instance_child = children_ids + .get(i) + .map(|&id| tree.get_instance_mut(id).unwrap()); + let snapshot_child = snapshot.children.get(i); - match (instance_child_foo, snapshot_child_foo) { + match (instance_child, snapshot_child) { (Some(instance_child), Some(snapshot_child)) => { children_to_update.push((instance_child.get_id(), snapshot_child)); },