allow arbitrary attribute value in owned attribute value (#574)

This commit is contained in:
Demonthos authored and GitHub committed 2022-10-02 14:13:06 -07:00
1 parent e98f46bbcc
commit 928b5358b2
4 files changed
+92 -4

No files matched your search

+6
View File
@@ -790,6 +790,12 @@ impl TemplateValue for OwnedAttributeValue {
OwnedAttributeValue::Vec4Uint(u1, u2, u3, u4) => {
AttributeValue::Vec4Uint(u1, u2, u3, u4)
}
OwnedAttributeValue::Any(owned) => {
AttributeValue::Any(crate::ArbitraryAttributeValue {
value: bump.alloc(owned.value),
cmp: owned.cmp,
})
}
}
}
}