Remove maplit dependency and stop using a macro for hashmaps (#982)

This commit is contained in:
Micah 2024-10-31 11:56:54 -07:00 • committed by GitHub
parent d9ab0e7de8
commit 34106f470f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 111 additions and 108 deletions

View file

@ -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()