Fix snapshot clippy lints (#685)

The sixth in a series of PRs that aim to get CI passing
This commit is contained in:
Kenneth Loeffler
2023-06-30 11:05:55 -07:00
committed by GitHub
parent 5b1a090c5e
commit a2f68c2e3c
3 changed files with 7 additions and 10 deletions

View File

@@ -26,10 +26,8 @@ pub fn compute_patch_set(snapshot: Option<InstanceSnapshot>, tree: &RojoTree, id
// for all of the IDs that we know about so far.
rewrite_refs_in_updates(&context, &mut patch_set.updated_instances);
rewrite_refs_in_additions(&context, &mut patch_set.added_instances);
} else {
if id != tree.get_root_id() {
patch_set.removed_instances.push(id);
}
} else if id != tree.get_root_id() {
patch_set.removed_instances.push(id);
}
patch_set