From 77a4c22a9d6abbb65844f5d0f6e6cd97c43aea11 Mon Sep 17 00:00:00 2001 From: marc2332 Date: Wed, 15 Jan 2025 14:54:23 +0100 Subject: [PATCH] clean up --- crates/native-core/src/node.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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)