Simplify events example
This commit is contained in:
parent
cdb7acf6c2
commit
e06a4d1ce4
1 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue