We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 747a354 commit 760dcedCopy full SHA for 760dced
1 file changed
graph/src/data/store/mod.rs
@@ -892,10 +892,9 @@ pub enum EntityValidationErrorInner {
892
macro_rules! entity {
893
($schema:expr => $($name:ident: $value:expr,)*) => {
894
{
895
- let mut result = Vec::new();
896
- $(
897
- result.push(($crate::data::value::Word::from(stringify!($name)), $crate::data::store::Value::from($value)));
898
- )*
+ let result = vec![$(
+ ($crate::data::value::Word::from(stringify!($name)), $crate::data::store::Value::from($value)),
+ )*];
899
$schema.make_entity(result).unwrap()
900
}
901
};
0 commit comments