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; struct All;
impl<H> impl
iced_native::subscription::Recipe<H, iced_native::subscription::Input> iced_native::subscription::Recipe<
for All iced_native::Hasher,
where iced_native::subscription::Input,
H: std::hash::Hasher, > for All
{ {
type Output = iced_native::Event; type Output = iced_native::Event;
fn hash(&self, state: &mut H) { fn hash(&self, state: &mut iced_native::Hasher) {
use std::hash::Hash; use std::hash::Hash;
std::any::TypeId::of::<All>().hash(state); std::any::TypeId::of::<All>().hash(state);