From d9a88cb63fb3fa0c5fb175c0ed5ffb762b894f6c Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 20 Jul 2019 20:34:18 +0200 Subject: [PATCH] Improve return type of sync --- src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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?