File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
13
13
14
14
- [ breaking-change] ` IndexMap ` and ` IndexSet ` now require that keys implement the ` core::hash::Hash `
15
15
trait instead of the ` hash32::Hash ` (v0.2.0) trait
16
+ - ` HistoryBuffer ` implements ` Clone ` and ` PartialEq ` .
16
17
17
18
### Fixed
18
19
Original file line number Diff line number Diff line change @@ -244,7 +244,11 @@ where
244
244
{
245
245
fn clone ( & self ) -> Self {
246
246
let mut ret = Self :: new ( ) ;
247
- ret. extend ( self . iter ( ) . cloned ( ) ) ;
247
+ for ( new, old) in ret. data . iter_mut ( ) . zip ( self . as_slice ( ) ) {
248
+ new. write ( old. clone ( ) ) ;
249
+ }
250
+ ret. filled = self . filled ;
251
+ ret. write_at = self . write_at ;
248
252
ret
249
253
}
250
254
}
You can’t perform that action at this time.
0 commit comments