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,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(),
};