Skip to content

Commit

Permalink
[ISSUE #48]⚡️impl From<&CheetahString> for CheetahString (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm authored Nov 15, 2024
1 parent 8c9c7da commit 26f70e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cheetah_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ impl From<bytes::Bytes> for CheetahString {
}
}

impl From<&CheetahString> for CheetahString {
fn from(s: &CheetahString) -> Self {
s.clone()
}
}

impl From<CheetahString> for String {
fn from(s: CheetahString) -> Self {
match s {
Expand Down

0 comments on commit 26f70e4

Please sign in to comment.