Skip to content

Commit e994a97

Browse files
author
Thomas Bahn
committed
Add AsMut<AsciiStr> for AsciiString impl
1 parent f9f5dc2 commit e994a97

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ascii_string.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,12 @@ impl AsRef<AsciiStr> for AsciiString {
455455
}
456456
}
457457

458+
impl AsMut<AsciiStr> for AsciiString {
459+
fn as_mut(&mut self) -> &mut AsciiStr {
460+
&mut *self
461+
}
462+
}
463+
458464
impl FromStr for AsciiString {
459465
type Err = ();
460466

0 commit comments

Comments
 (0)