diff --git a/src/array_string.rs b/src/array_string.rs index c4712a0..b0f135b 100644 --- a/src/array_string.rs +++ b/src/array_string.rs @@ -1,4 +1,4 @@ -use std::borrow::Borrow; +use std::borrow::{Borrow, BorrowMut}; use std::cmp; use std::convert::TryFrom; use std::fmt; @@ -479,6 +479,11 @@ impl Borrow for ArrayString fn borrow(&self) -> &str { self } } +impl BorrowMut for ArrayString +{ + fn borrow_mut(&mut self) -> &mut str { self } +} + impl AsRef for ArrayString { fn as_ref(&self) -> &str { self }