diff --git a/src/convert.rs b/src/convert.rs index 3e3ed41..93631ad 100644 --- a/src/convert.rs +++ b/src/convert.rs @@ -87,6 +87,12 @@ pub trait IntoAttributeValue { fn into_attribute_value(self) -> Option; } +impl IntoAttributeValue for usize { + fn into_attribute_value(self) -> Option { + Some(format!("{}", self)) + } +} + impl IntoAttributeValue for String { fn into_attribute_value(self) -> Option { Some(self)