mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 22:25:26 +00:00
Make all file contents be Arc<Vec<u8>> instead of &[u8]
This commit is contained in:
@@ -37,7 +37,7 @@ impl SnapshotMiddleware for SnapshotCsv {
|
||||
.path()
|
||||
.with_file_name(format!("{}.meta.json", instance_name));
|
||||
|
||||
let table_contents = convert_localization_csv(entry.contents(vfs)?);
|
||||
let table_contents = convert_localization_csv(&entry.contents(vfs)?);
|
||||
|
||||
let mut snapshot = InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
@@ -58,7 +58,7 @@ impl SnapshotMiddleware for SnapshotCsv {
|
||||
|
||||
if let Some(meta_entry) = vfs.get(meta_path).with_not_found()? {
|
||||
let meta_contents = meta_entry.contents(vfs)?;
|
||||
let mut metadata = AdjacentMetadata::from_slice(meta_contents);
|
||||
let mut metadata = AdjacentMetadata::from_slice(&meta_contents);
|
||||
metadata.apply_all(&mut snapshot);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user