From 8ba4dbcce6b76149cb66b809f1e59e26e0011ad8 Mon Sep 17 00:00:00 2001 From: Pantonshire Date: Mon, 16 May 2022 15:18:13 +0100 Subject: [PATCH] impl AsMut for ShString --- src/strings.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/strings.rs b/src/strings.rs index f92188c..1c96229 100644 --- a/src/strings.rs +++ b/src/strings.rs @@ -185,6 +185,13 @@ impl AsRef for ShString { } } +impl AsMut for ShString { + #[inline] + fn as_mut(&mut self) -> &mut str { + self + } +} + impl borrow::Borrow for ShString { #[inline] fn borrow(&self) -> &str {