From 5a7d6a673a8abaa59f462245a66b09227a882589 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Tue, 27 Aug 2019 15:26:51 -0700 Subject: [PATCH] Fix bug caught by clippy --- server/src/snapshot/patch_compute.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/snapshot/patch_compute.rs b/server/src/snapshot/patch_compute.rs index 6ef5d36a..ec60500c 100644 --- a/server/src/snapshot/patch_compute.rs +++ b/server/src/snapshot/patch_compute.rs @@ -173,7 +173,7 @@ fn compute_children_patches<'a>( .expect("Instance did not exist in tree"); if snapshot_child.name == instance_child.name - && instance_child.class_name == instance_child.class_name + && snapshot_child.class_name == instance_child.class_name { paired_instances[*instance_index] = true; return true; @@ -327,4 +327,4 @@ mod test { assert_eq!(patch_set, expected_patch_set); } -} +} \ No newline at end of file