diff options
author | 2019-12-14 04:49:13 +0100 | |
---|---|---|
committer | 2019-12-14 04:49:13 +0100 | |
commit | 293314405f5b8d4003db5ef8f428e659ae36872d (patch) | |
tree | 0ae1f11d0347e53423568969397d8636e029c726 /examples | |
parent | ba06d458d33d98bfaa5e66b3512ce7f063e8d7ba (diff) | |
download | iced-293314405f5b8d4003db5ef8f428e659ae36872d.tar.gz iced-293314405f5b8d4003db5ef8f428e659ae36872d.tar.bz2 iced-293314405f5b8d4003db5ef8f428e659ae36872d.zip |
Make `iced_native` subscription input opaque
Diffstat (limited to 'examples')
-rw-r--r-- | examples/stopwatch.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<Hasher, Input> iced_native::subscription::Recipe<Hasher, Input> for Every + impl<H, I> iced_native::subscription::Recipe<H, I> 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::<Self>().hash(state); @@ -170,7 +170,7 @@ mod time { fn stream( self: Box<Self>, - _input: Input, + _input: I, ) -> futures::stream::BoxStream<'static, Self::Output> { use futures::stream::StreamExt; |