forked from rojo-rbx/rojo
Removed InstanceSnapshot snapshot_id's redudant Ref. (#730)
Ref now is an optional inside, so it's redundant to have an option wrapping an option. The only snapshots that were changed were any that had a Ref within (from none to zeroed). Some also had some newlines added in the end.
This commit is contained in:
@@ -135,7 +135,7 @@ fn apply_add_child(
|
||||
context.has_refs_to_rewrite.insert(id);
|
||||
}
|
||||
|
||||
if let Some(snapshot_id) = snapshot_id {
|
||||
if snapshot_id.is_some() {
|
||||
context.snapshot_id_to_instance_id.insert(snapshot_id, id);
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@ mod test {
|
||||
let root_id = tree.get_root_id();
|
||||
|
||||
let snapshot = InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
snapshot_id: Ref::none(),
|
||||
metadata: Default::default(),
|
||||
name: Cow::Borrowed("Foo"),
|
||||
class_name: Cow::Borrowed("Bar"),
|
||||
|
||||
Reference in New Issue
Block a user