Remove hash_layout method from Widget trait

This commit is contained in:
Héctor Ramón Jiménez 2022-02-22 14:10:49 +07:00
parent 9fe5080153
commit 1313c94e3b
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
35 changed files with 105 additions and 636 deletions

View file

@ -1,6 +1,4 @@
//! Show toggle controls using checkboxes.
use std::hash::Hash;
use crate::alignment;
use crate::event::{self, Event};
use crate::layout;
@ -10,8 +8,8 @@ use crate::text;
use crate::touch;
use crate::widget::{self, Row, Text};
use crate::{
Alignment, Clipboard, Element, Hasher, Layout, Length, Point, Rectangle,
Shell, Widget,
Alignment, Clipboard, Element, Layout, Length, Point, Rectangle, Shell,
Widget,
};
pub use iced_style::checkbox::{Style, StyleSheet};
@ -262,13 +260,6 @@ where
);
}
}
fn hash_layout(&self, state: &mut Hasher) {
struct Marker;
std::any::TypeId::of::<Marker>().hash(state);
self.label.hash(state);
}
}
impl<'a, Message, Renderer> From<Checkbox<'a, Message, Renderer>>