diff --git a/src/punctuated.rs b/src/punctuated.rs index a4278081c4..3ea8a1d4ee 100644 --- a/src/punctuated.rs +++ b/src/punctuated.rs @@ -369,6 +369,11 @@ where last: self.last.clone(), } } + + fn clone_from(&mut self, other: &Self) { + self.inner.clone_from(&other.inner); + self.last.clone_from(&other.last); + } } #[cfg(feature = "extra-traits")]