From d136bb42704a8b36cb9b8852f6c0e4a29d6bfac8 Mon Sep 17 00:00:00 2001 From: mxsm Date: Fri, 15 Nov 2024 03:20:33 +0000 Subject: [PATCH] =?UTF-8?q?[ISSUE=20#48]=E2=9A=A1=EF=B8=8Fimpl=20From<&Che?= =?UTF-8?q?etahString>=20for=20CheetahString?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cheetah_string.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cheetah_string.rs b/src/cheetah_string.rs index d6041a9..1e659d8 100644 --- a/src/cheetah_string.rs +++ b/src/cheetah_string.rs @@ -86,6 +86,12 @@ impl From for CheetahString { } } +impl From<&CheetahString> for CheetahString { + fn from(s: &CheetahString) -> Self { + s.clone() + } +} + impl From for String { fn from(s: CheetahString) -> Self { match s {