Skip to content

Commit a458d9f

Browse files
committed
Override clone_from for HashTable
1 parent c5c96af commit a458d9f

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)