mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +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::borrow::Cow;
|
||||
|
||||
use insta::assert_yaml_snapshot;
|
||||
use maplit::hashmap;
|
||||
|
||||
use rbx_dom_weak::types::Ref;
|
||||
use rojo_insta_ext::RedactionMap;
|
||||
|
|
@ -42,9 +41,7 @@ fn set_property() {
|
|||
metadata: Default::default(),
|
||||
name: Cow::Borrowed("ROOT"),
|
||||
class_name: Cow::Borrowed("ROOT"),
|
||||
properties: hashmap! {
|
||||
"PropertyName".to_owned() => "Hello, world!".into(),
|
||||
},
|
||||
properties: [("PropertyName".into(), "Hello, world!".into())].into(),
|
||||
children: Vec::new(),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue