Skip to content

Commit 26f70e4

Browse files
authored
[ISSUE #48]⚡️impl From<&CheetahString> for CheetahString (#49)
1 parent 8c9c7da commit 26f70e4

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
@@ -86,6 +86,12 @@ impl From<bytes::Bytes> for CheetahString {
8686
}
8787
}
8888

89+
impl From<&CheetahString> for CheetahString {
90+
fn from(s: &CheetahString) -> Self {
91+
s.clone()
92+
}
93+
}
94+
8995
impl From<CheetahString> for String {
9096
fn from(s: CheetahString) -> Self {
9197
match s {

0 commit comments

Comments
 (0)