mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 20:55:50 +00:00
Remove className from adjacent meta files, which is not supported in 0.5.x
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use std::{borrow::Cow, collections::HashMap};
|
||||
use std::collections::HashMap;
|
||||
|
||||
use rbx_dom_weak::UnresolvedRbxValue;
|
||||
use rbx_reflection::try_resolve_value;
|
||||
@@ -9,9 +9,6 @@ use crate::snapshot::InstanceSnapshot;
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct AdjacentMetadata {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub class_name: Option<String>,
|
||||
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub ignore_unknown_instances: Option<bool>,
|
||||
|
||||
@@ -32,12 +29,6 @@ impl AdjacentMetadata {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn apply_class_name(&mut self, snapshot: &mut InstanceSnapshot) {
|
||||
if let Some(class_name) = self.class_name.take() {
|
||||
snapshot.class_name = Cow::Owned(class_name);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn apply_properties(&mut self, snapshot: &mut InstanceSnapshot) {
|
||||
let class_name = &snapshot.class_name;
|
||||
|
||||
@@ -54,7 +45,6 @@ impl AdjacentMetadata {
|
||||
|
||||
pub fn apply_all(&mut self, snapshot: &mut InstanceSnapshot) {
|
||||
self.apply_ignore_unknown_instances(snapshot);
|
||||
self.apply_class_name(snapshot);
|
||||
self.apply_properties(snapshot);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user