From 293314405f5b8d4003db5ef8f428e659ae36872d Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 14 Dec 2019 04:49:13 +0100 Subject: Make `iced_native` subscription input opaque --- examples/stopwatch.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/stopwatch.rs') diff --git a/examples/stopwatch.rs b/examples/stopwatch.rs index d21bdaa8..0d52a091 100644 --- a/examples/stopwatch.rs +++ b/examples/stopwatch.rs @@ -155,13 +155,13 @@ mod time { struct Every(std::time::Duration); - impl iced_native::subscription::Recipe for Every + impl iced_native::subscription::Recipe for Every where - Hasher: std::hash::Hasher, + H: std::hash::Hasher, { type Output = std::time::Instant; - fn hash(&self, state: &mut Hasher) { + fn hash(&self, state: &mut H) { use std::hash::Hash; std::any::TypeId::of::().hash(state); @@ -170,7 +170,7 @@ mod time { fn stream( self: Box, - _input: Input, + _input: I, ) -> futures::stream::BoxStream<'static, Self::Output> { use futures::stream::StreamExt; -- cgit