summaryrefslogtreecommitdiffstats
path: root/native/src/widget/space.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-30 17:28:55 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-30 17:28:55 +0200
commitd07304fb85c4ea7293b61c5d0a366ffbbc511de2 (patch)
tree7337c03004fd8addb891385f67ef60f11d3ceee2 /native/src/widget/space.rs
parent0539cd1b85d00a2accca200184a5980527851539 (diff)
downloadiced-d07304fb85c4ea7293b61c5d0a366ffbbc511de2.tar.gz
iced-d07304fb85c4ea7293b61c5d0a366ffbbc511de2.tar.bz2
iced-d07304fb85c4ea7293b61c5d0a366ffbbc511de2.zip
Hash type ids in `Widget::hash_layout` impls
Diffstat (limited to 'native/src/widget/space.rs')
-rw-r--r--native/src/widget/space.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/native/src/widget/space.rs b/native/src/widget/space.rs
index 392f2319..e56a8fe1 100644
--- a/native/src/widget/space.rs
+++ b/native/src/widget/space.rs
@@ -77,6 +77,7 @@ where
fn hash_layout(&self, state: &mut Hasher) {
std::any::TypeId::of::<Space>().hash(state);
+
self.width.hash(state);
self.height.hash(state);
}