summaryrefslogtreecommitdiffstats
path: root/native/src/widget/button.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-20 19:31:49 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-20 19:31:49 +0200
commiteda1048dbcf5753dc6171c3ee1478ec44468d5e3 (patch)
treedd9d17b1e8c7af9a0c820a0aa07d4937cf71fe32 /native/src/widget/button.rs
parentb9e0f7494881ad7cdfbcbc16878ecc6ef717753f (diff)
downloadiced-eda1048dbcf5753dc6171c3ee1478ec44468d5e3.tar.gz
iced-eda1048dbcf5753dc6171c3ee1478ec44468d5e3.tar.bz2
iced-eda1048dbcf5753dc6171c3ee1478ec44468d5e3.zip
Complete some `hash_layout` implementations
Diffstat (limited to 'native/src/widget/button.rs')
-rw-r--r--native/src/widget/button.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/native/src/widget/button.rs b/native/src/widget/button.rs
index c9436dc4..7b5c4a86 100644
--- a/native/src/widget/button.rs
+++ b/native/src/widget/button.rs
@@ -7,9 +7,7 @@
//! [`Class`]: enum.Class.html
use crate::input::{mouse, ButtonState};
-use crate::{
- Element, Event, Hasher, Layout, MouseCursor, Node, Point, Rectangle, Widget,
-};
+use crate::{Element, Event, Hasher, Layout, MouseCursor, Node, Point, Widget};
use std::hash::Hash;
pub use iced_core::button::*;
@@ -70,7 +68,9 @@ where
}
fn hash_layout(&self, state: &mut Hasher) {
+ self.label.hash(state);
self.width.hash(state);
+ self.align_self.hash(state);
}
}