diff --git a/src/cheetah_string.rs b/src/cheetah_string.rs index 6d9596f..8dd34b2 100644 --- a/src/cheetah_string.rs +++ b/src/cheetah_string.rs @@ -27,9 +27,9 @@ impl From> for CheetahString { } } -impl From<&'static str> for CheetahString { - fn from(s: &'static str) -> Self { - CheetahString::from_static_str(s) +impl<'a> From<&'a str> for CheetahString { + fn from(s: &'a str) -> Self { + CheetahString::from_slice(s) } }