summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-10 04:06:12 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-10 04:06:12 +0100
commite06a4d1ce45be2d361879be480c4179e4532839d (patch)
treef48aabf43ea94099e08f08c927a0edda340942a4
parentcdb7acf6c20fe13a09e75ea1c47d53ced6174698 (diff)
downloadiced-e06a4d1ce45be2d361879be480c4179e4532839d.tar.gz
iced-e06a4d1ce45be2d361879be480c4179e4532839d.tar.bz2
iced-e06a4d1ce45be2d361879be480c4179e4532839d.zip
Simplify `events` example
-rw-r--r--examples/events.rs12
1 files changed, 6 insertions, 6 deletions
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<H>
- iced_native::subscription::Recipe<H, iced_native::subscription::Input>
- 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::<All>().hash(state);