summaryrefslogtreecommitdiffstats
path: root/native/src/widget/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-03-30 17:39:54 +0200
committerLibravatar GitHub <noreply@github.com>2020-03-30 17:39:54 +0200
commit6e9ab1cd6f5358d323040379e3aadbed2cc4f7f8 (patch)
tree7337c03004fd8addb891385f67ef60f11d3ceee2 /native/src/widget/text.rs
parent5b2c71a708f907f2b3c73bcdf56fbca5cd80adde (diff)
parentd07304fb85c4ea7293b61c5d0a366ffbbc511de2 (diff)
downloadiced-6e9ab1cd6f5358d323040379e3aadbed2cc4f7f8.tar.gz
iced-6e9ab1cd6f5358d323040379e3aadbed2cc4f7f8.tar.bz2
iced-6e9ab1cd6f5358d323040379e3aadbed2cc4f7f8.zip
Merge pull request #245 from tirz/refactor-bound_lifetime
refactor: remove not mandatories 'static lifetimes
Diffstat (limited to 'native/src/widget/text.rs')
-rw-r--r--native/src/widget/text.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/native/src/widget/text.rs b/native/src/widget/text.rs
index 7d8cad6e..dc7c33ec 100644
--- a/native/src/widget/text.rs
+++ b/native/src/widget/text.rs
@@ -163,6 +163,8 @@ where
}
fn hash_layout(&self, state: &mut Hasher) {
+ std::any::TypeId::of::<Text>().hash(state);
+
self.content.hash(state);
self.size.hash(state);
self.width.hash(state);