mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 22:25:26 +00:00
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:
@@ -2,7 +2,7 @@ use std::{borrow::Cow, collections::HashMap, path::Path, str};
|
||||
|
||||
use anyhow::Context;
|
||||
use memofs::Vfs;
|
||||
use rbx_dom_weak::types::Attributes;
|
||||
use rbx_dom_weak::types::{Attributes, Ref};
|
||||
use serde::Deserialize;
|
||||
|
||||
use crate::{
|
||||
@@ -112,7 +112,7 @@ impl JsonModel {
|
||||
}
|
||||
|
||||
Ok(InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
snapshot_id: Ref::none(),
|
||||
metadata: Default::default(),
|
||||
name: Cow::Owned(name),
|
||||
class_name: Cow::Owned(class_name),
|
||||
|
||||
@@ -2,7 +2,7 @@ use std::{borrow::Cow, collections::HashMap, path::Path};
|
||||
|
||||
use anyhow::{bail, Context};
|
||||
use memofs::Vfs;
|
||||
use rbx_dom_weak::types::Attributes;
|
||||
use rbx_dom_weak::types::{Attributes, Ref};
|
||||
use rbx_reflection::ClassTag;
|
||||
|
||||
use crate::{
|
||||
@@ -271,7 +271,7 @@ pub fn snapshot_project_node(
|
||||
));
|
||||
|
||||
Ok(Some(InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
snapshot_id: Ref::none(),
|
||||
name,
|
||||
class_name,
|
||||
properties,
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/csv.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/csv.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/dir.rs
|
||||
assertion_line: 127
|
||||
expression: instance_snapshot
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/dir.rs
|
||||
assertion_line: 148
|
||||
expression: instance_snapshot
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
@@ -23,7 +22,7 @@ name: foo
|
||||
class_name: Folder
|
||||
properties: {}
|
||||
children:
|
||||
- snapshot_id: ~
|
||||
- snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/json.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/json_model.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
@@ -17,7 +16,7 @@ properties:
|
||||
Value:
|
||||
Int64: 5
|
||||
children:
|
||||
- snapshot_id: ~
|
||||
- snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
relevant_paths: []
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/json_model.rs
|
||||
assertion_line: 186
|
||||
expression: instance_snapshot
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
@@ -17,7 +16,7 @@ properties:
|
||||
Value:
|
||||
Int64: 5
|
||||
children:
|
||||
- snapshot_id: ~
|
||||
- snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
relevant_paths: []
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/lua.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/lua.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/lua.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/lua.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/lua.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/lua.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
source: src/snapshot_middleware/project.rs
|
||||
expression: instance_snapshot
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
@@ -14,3 +14,4 @@ name: direct-project
|
||||
class_name: Model
|
||||
properties: {}
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/project.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
source: src/snapshot_middleware/project.rs
|
||||
expression: instance_snapshot
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
@@ -14,7 +14,7 @@ name: children
|
||||
class_name: Folder
|
||||
properties: {}
|
||||
children:
|
||||
- snapshot_id: ~
|
||||
- snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
@@ -29,3 +29,4 @@ children:
|
||||
class_name: Model
|
||||
properties: {}
|
||||
children: []
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
source: src/snapshot_middleware/project.rs
|
||||
expression: instance_snapshot
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
@@ -15,3 +15,4 @@ name: path-project
|
||||
class_name: Model
|
||||
properties: {}
|
||||
children: []
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
source: src/snapshot_middleware/project.rs
|
||||
expression: instance_snapshot
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
@@ -15,7 +15,7 @@ name: path-child-project
|
||||
class_name: Folder
|
||||
properties: {}
|
||||
children:
|
||||
- snapshot_id: ~
|
||||
- snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
@@ -30,3 +30,4 @@ children:
|
||||
class_name: Model
|
||||
properties: {}
|
||||
children: []
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/project.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/project.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/project.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
source: src/snapshot_middleware/txt.rs
|
||||
expression: instance_snapshot
|
||||
|
||||
---
|
||||
snapshot_id: ~
|
||||
snapshot_id: "00000000000000000000000000000000"
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
|
||||
Reference in New Issue
Block a user