Use heapsize_derive instead of heapsize_plugin

This commit is contained in:
Simon Sapin 2016-11-02 18:46:15 +01:00 committed by Anthony Ramine
parent b640a83725
commit 5bb4c6c884
34 changed files with 152 additions and 90 deletions

View file

@ -625,6 +625,12 @@ impl<T: Reflectable> Deref for Root<T> {
}
}
impl<T: Reflectable + HeapSizeOf> HeapSizeOf for Root<T> {
fn heap_size_of_children(&self) -> usize {
(**self).heap_size_of_children()
}
}
impl<T: Reflectable> PartialEq for Root<T> {
fn eq(&self, other: &Self) -> bool {
self.ptr == other.ptr