Simplify events example

This commit is contained in:
Héctor Ramón Jiménez 2019-12-10 04:06:12 +01:00
parent cdb7acf6c2
commit e06a4d1ce4

View File

@ -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);