diff --git a/src/array_string.rs b/src/array_string.rs index 1758526..5c3414f 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; @@ -481,6 +481,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 }