diff --git a/crates/native-core/src/node.rs b/crates/native-core/src/node.rs index 0d41fe85c..f6b73b84a 100644 --- a/crates/native-core/src/node.rs +++ b/crates/native-core/src/node.rs @@ -117,6 +117,12 @@ pub enum OwnedAttributeValue { Custom(V), } +impl From for OwnedAttributeValue { + fn from(value: String) -> Self { + Self::Text(value.into_boxed_str()) + } +} + impl From for OwnedAttributeValue { fn from(value: f64) -> Self { Self::Float(value)