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,5 +1,4 @@
|
|||
use insta::assert_yaml_snapshot;
|
||||
use maplit::hashmap;
|
||||
|
||||
use rojo_insta_ext::RedactionMap;
|
||||
|
||||
|
|
@ -47,9 +46,7 @@ fn add_property() {
|
|||
id: tree.get_root_id(),
|
||||
changed_name: None,
|
||||
changed_class_name: None,
|
||||
changed_properties: hashmap! {
|
||||
"Foo".to_owned() => Some("Value of Foo".into()),
|
||||
},
|
||||
changed_properties: [("Foo".to_owned(), Some("Value of Foo".into()))].into(),
|
||||
changed_metadata: None,
|
||||
}],
|
||||
..Default::default()
|
||||
|
|
@ -88,9 +85,7 @@ fn remove_property() {
|
|||
id: tree.get_root_id(),
|
||||
changed_name: None,
|
||||
changed_class_name: None,
|
||||
changed_properties: hashmap! {
|
||||
"Foo".to_owned() => None,
|
||||
},
|
||||
changed_properties: [("Foo".to_owned(), None).into()].into(),
|
||||
changed_metadata: None,
|
||||
}],
|
||||
..Default::default()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue