mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Use rbx_xml 0.9.0's config to read unknown properties
This commit is contained in:
parent
91780f236e
commit
8f6dda5cd3
2 changed files with 11 additions and 3 deletions
|
|
@ -653,7 +653,10 @@ fn snapshot_xml_model_file<'source>(
|
|||
.file_stem().expect("Could not extract file stem")
|
||||
.to_str().expect("Could not convert path to UTF-8");
|
||||
|
||||
let temp_tree = rbx_xml::from_reader_default(file.contents.as_slice())
|
||||
let options = rbx_xml::DecodeOptions::new()
|
||||
.property_behavior(rbx_xml::DecodePropertyBehavior::ReadUnknown);
|
||||
|
||||
let temp_tree = rbx_xml::from_reader(file.contents.as_slice(), options)
|
||||
.map_err(|inner| SnapshotError::XmlModelDecodeError {
|
||||
inner,
|
||||
path: file.path.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue