diff --git a/src/slice.rs b/src/slice.rs index 2a0af28..e466cca 100644 --- a/src/slice.rs +++ b/src/slice.rs @@ -33,6 +33,12 @@ impl From<&str> for Slice { } } +impl From<&String> for Slice { + fn from(value: &String) -> Self { + Self::from(value.as_str()) + } +} + impl From> for Slice { fn from(value: Arc) -> Self { Self::from(&*value)