Fix bug caught by clippy

This commit is contained in:
Lucien Greathouse
2019-08-27 15:26:51 -07:00
parent 7fb9aa2115
commit 5a7d6a673a

View File

@@ -173,7 +173,7 @@ fn compute_children_patches<'a>(
.expect("Instance did not exist in tree"); .expect("Instance did not exist in tree");
if snapshot_child.name == instance_child.name 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; paired_instances[*instance_index] = true;
return true; return true;
@@ -327,4 +327,4 @@ mod test {
assert_eq!(patch_set, expected_patch_set); assert_eq!(patch_set, expected_patch_set);
} }
} }