diff --git a/types/src/types.rs b/types/src/types.rs index 6924a78..65a068b 100644 --- a/types/src/types.rs +++ b/types/src/types.rs @@ -202,6 +202,12 @@ impl fmt::Display for ShortString { } } +impl From for String { + fn from(value: ShortString) -> Self { + value.0 + } +} + impl<'a> LongString { /// Get a reference to a LongString as &[u8] pub fn as_bytes(&'a self) -> &'a [u8] {