diff --git a/src/lib.rs b/src/lib.rs index 6c6c2c1b..cea6c75a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -109,7 +109,7 @@ use std::{ use futures::{ future::Future, - stream::{self, TryStream, TryStreamExt as _}, + stream::{self, Stream, TryStream, TryStreamExt as _}, }; use http::Response as HttpResponse; use hyper::{ @@ -320,7 +320,9 @@ where filter: Option, since: Option, set_presence: bool, - ) -> impl TryStream { + ) -> impl Stream> + + TryStream + { use ruma_client_api::r0::sync::sync_events; // TODO: Is this really the way TryStreams are supposed to work?