mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Start stripping out lifetimes in InstanceSnapshot
This commit is contained in:
parent
f32cb592e2
commit
d2e2a13479
5 changed files with 23 additions and 29 deletions
|
|
@ -13,13 +13,13 @@ use super::{InstanceMetadata, InstanceSnapshot};
|
|||
/// sure that another patch wasn't applied before this one that could cause a
|
||||
/// conflict!
|
||||
#[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)]
|
||||
pub struct PatchSet<'a> {
|
||||
pub struct PatchSet {
|
||||
pub removed_instances: Vec<RbxId>,
|
||||
pub added_instances: Vec<PatchAdd<'a>>,
|
||||
pub added_instances: Vec<PatchAdd>,
|
||||
pub updated_instances: Vec<PatchUpdate>,
|
||||
}
|
||||
|
||||
impl<'a> PatchSet<'a> {
|
||||
impl<'a> PatchSet {
|
||||
pub fn new() -> Self {
|
||||
PatchSet {
|
||||
removed_instances: Vec::new(),
|
||||
|
|
@ -31,9 +31,9 @@ impl<'a> PatchSet<'a> {
|
|||
|
||||
/// A patch containing an instance that was added to the tree.
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
pub struct PatchAdd<'a> {
|
||||
pub struct PatchAdd {
|
||||
pub parent_id: RbxId,
|
||||
pub instance: InstanceSnapshot<'a>,
|
||||
pub instance: InstanceSnapshot,
|
||||
}
|
||||
|
||||
/// A patch indicating that properties of an instance changed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue