Make Hasher opaque
This commit is contained in:
parent
e84e0b876c
commit
2ebe09dacb
12 changed files with 36 additions and 20 deletions
|
|
@ -86,7 +86,7 @@ impl<'a, Message, Renderer> UserInterface<'a, Message, Renderer> {
|
|||
let root = root.into();
|
||||
|
||||
let hasher = &mut crate::Hasher::default();
|
||||
root.hash(hasher);
|
||||
root.hash_layout(hasher);
|
||||
|
||||
let hash = hasher.finish();
|
||||
|
||||
|
|
@ -302,7 +302,7 @@ impl Cache {
|
|||
let root: Element<'_, (), ()> = Column::new().into();
|
||||
|
||||
let hasher = &mut crate::Hasher::default();
|
||||
root.hash(hasher);
|
||||
root.hash_layout(hasher);
|
||||
|
||||
Cache {
|
||||
hash: hasher.finish(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue