mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Remove maplit dependency and stop using a macro for hashmaps (#982)
This commit is contained in:
parent
d9ab0e7de8
commit
34106f470f
13 changed files with 111 additions and 108 deletions
|
|
@ -1,7 +1,6 @@
|
|||
use std::{collections::BTreeMap, path::Path};
|
||||
|
||||
use anyhow::Context;
|
||||
use maplit::hashmap;
|
||||
use memofs::{IoResultExt, Vfs};
|
||||
use serde::Serialize;
|
||||
|
||||
|
|
@ -31,9 +30,7 @@ pub fn snapshot_csv(
|
|||
let mut snapshot = InstanceSnapshot::new()
|
||||
.name(name)
|
||||
.class_name("LocalizationTable")
|
||||
.properties(hashmap! {
|
||||
"Contents".to_owned() => table_contents.into(),
|
||||
})
|
||||
.properties([("Contents".to_owned(), table_contents.into())])
|
||||
.metadata(
|
||||
InstanceMetadata::new()
|
||||
.instigating_source(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue