From e06a4d1ce45be2d361879be480c4179e4532839d Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 10 Dec 2019 04:06:12 +0100 Subject: Simplify `events` example --- examples/events.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/events.rs') diff --git a/examples/events.rs b/examples/events.rs index 10758519..03e8d995 100644 --- a/examples/events.rs +++ b/examples/events.rs @@ -95,15 +95,15 @@ mod events { struct All; - impl - iced_native::subscription::Recipe - for All - where - H: std::hash::Hasher, + impl + iced_native::subscription::Recipe< + iced_native::Hasher, + iced_native::subscription::Input, + > for All { type Output = iced_native::Event; - fn hash(&self, state: &mut H) { + fn hash(&self, state: &mut iced_native::Hasher) { use std::hash::Hash; std::any::TypeId::of::().hash(state); -- cgit