Fix name assignment for sync points

This commit is contained in:
Lucien Greathouse
2018-12-30 20:21:46 -08:00
parent 2f1aadd497
commit c0ffbd360e

View File

@@ -158,8 +158,12 @@ fn construct_project_node<'a>(
construct_instance_node(imfs, instance_name, node)
},
ProjectNode::SyncPoint(node) => {
snapshot_instances_from_imfs(imfs, &node.path)
.expect("Could not reify nodes from Imfs")
let mut snapshot = snapshot_instances_from_imfs(imfs, &node.path)
.expect("Could not reify nodes from Imfs");
snapshot.name = Cow::Borrowed(instance_name);
snapshot
},
}
}