Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Jan 15, 2025
1 parent d112574 commit 77a4c22
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/native-core/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ pub enum OwnedAttributeValue<V: FromAnyValue = ()> {
Custom(V),
}

impl<V: FromAnyValue> From<String> for OwnedAttributeValue<V> {
fn from(value: String) -> Self {
Self::Text(value.into_boxed_str())
}
}

impl<V: FromAnyValue> From<f64> for OwnedAttributeValue<V> {
fn from(value: f64) -> Self {
Self::Float(value)
Expand Down

0 comments on commit 77a4c22

Please sign in to comment.