From 9dd3f3c67bafb6c476b39684092c8ff876c24b72 Mon Sep 17 00:00:00 2001 From: Dominic Date: Wed, 9 Nov 2022 17:07:18 +0100 Subject: [PATCH] Add missing `BorrowMut` for `ArrayString` --- src/array_string.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 }