mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-25 13:31:37 +00:00
Implement Default for snapshot reconciler structs
This commit is contained in:
parent
78ef26d56c
commit
b036a5e7bc
2 changed files with 7 additions and 1 deletions
|
|
@ -20,6 +20,12 @@ pub struct PathMap<T> {
|
||||||
nodes: HashMap<PathBuf, PathMapNode<T>>,
|
nodes: HashMap<PathBuf, PathMapNode<T>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<T> Default for PathMap<T> {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<T> PathMap<T> {
|
impl<T> PathMap<T> {
|
||||||
pub fn new() -> PathMap<T> {
|
pub fn new() -> PathMap<T> {
|
||||||
PathMap {
|
PathMap {
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ impl InstanceChanges {
|
||||||
|
|
||||||
/// A lightweight, hierarchical representation of an instance that can be
|
/// A lightweight, hierarchical representation of an instance that can be
|
||||||
/// applied to the tree.
|
/// applied to the tree.
|
||||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct RbxSnapshotInstance<'a> {
|
pub struct RbxSnapshotInstance<'a> {
|
||||||
pub name: Cow<'a, str>,
|
pub name: Cow<'a, str>,
|
||||||
pub class_name: Cow<'a, str>,
|
pub class_name: Cow<'a, str>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue