Skip to content

Commit 9381d08

Browse files
authored
[ISSUE #53]🍻impl AsRef<CheetahString> for CheetahString (#54)
1 parent 95446b6 commit 9381d08

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cheetah_string.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ impl AsRef<[u8]> for CheetahString {
195195
}
196196
}
197197

198+
impl AsRef<CheetahString> for CheetahString {
199+
fn as_ref(&self) -> &CheetahString {
200+
self
201+
}
202+
}
203+
198204
impl From<&String> for CheetahString {
199205
fn from(s: &String) -> Self {
200206
CheetahString::from_slice(s)

0 commit comments

Comments
 (0)