diff --git a/src/cheetah_string.rs b/src/cheetah_string.rs index d6041a9..1e659d8 100644 --- a/src/cheetah_string.rs +++ b/src/cheetah_string.rs @@ -86,6 +86,12 @@ impl From for CheetahString { } } +impl From<&CheetahString> for CheetahString { + fn from(s: &CheetahString) -> Self { + s.clone() + } +} + impl From for String { fn from(s: CheetahString) -> Self { match s {