diff --git a/src/cheetah_string.rs b/src/cheetah_string.rs index c440f8e..ea26571 100644 --- a/src/cheetah_string.rs +++ b/src/cheetah_string.rs @@ -195,6 +195,12 @@ impl AsRef<[u8]> for CheetahString { } } +impl AsRef for CheetahString { + fn as_ref(&self) -> &CheetahString { + self + } +} + impl From<&String> for CheetahString { fn from(s: &String) -> Self { CheetahString::from_slice(s)