Skip to content

Commit bba4a01

Browse files
authored
Merge pull request #668 from clarfonthey/clone_from
Override `clone_from` for `HashTable`
2 parents c5c96af + a458d9f commit bba4a01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/table.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,6 +1608,10 @@ where
16081608
raw: self.raw.clone(),
16091609
}
16101610
}
1611+
1612+
fn clone_from(&mut self, source: &Self) {
1613+
self.raw.clone_from(&source.raw);
1614+
}
16111615
}
16121616

16131617
impl<T, A> fmt::Debug for HashTable<T, A>

0 commit comments

Comments
 (0)