Skip to content

Commit

Permalink
Add DerefMut for Punctuated
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaesar authored and PoignardAzur committed Apr 11, 2022
1 parent f9d75f9 commit d317dda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/punctuated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,9 @@ impl<T> std::ops::Deref for Punctuated<T> {
&self.inner
}
}

impl<T> std::ops::DerefMut for Punctuated<T> {
fn deref_mut(&mut self) -> &mut <Self as std::ops::Deref>::Target {
&mut self.inner
}
}

0 comments on commit d317dda

Please sign in to comment.