From f161c8117c706fc52089999e1f406cf34276ec9d Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 21 Dec 2021 09:48:08 +0100 Subject: [PATCH] client: Fix tests under client-api feature flag --- crates/ruma-client/Cargo.toml | 1 + crates/ruma-client/src/client_api.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ruma-client/Cargo.toml b/crates/ruma-client/Cargo.toml index e36cd315..f43e11ba 100644 --- a/crates/ruma-client/Cargo.toml +++ b/crates/ruma-client/Cargo.toml @@ -55,3 +55,4 @@ serde_json = "1.0.61" [dev-dependencies] ruma-client-api = { version = "0.12.3", path = "../ruma-client-api", features = ["client"] } +tokio-stream = "0.1.8" diff --git a/crates/ruma-client/src/client_api.rs b/crates/ruma-client/src/client_api.rs index dec75fd5..f5145aa9 100644 --- a/crates/ruma-client/src/client_api.rs +++ b/crates/ruma-client/src/client_api.rs @@ -86,7 +86,7 @@ impl Client { /// use std::time::Duration; /// /// # type MatrixClient = ruma_client::Client; - /// # use ruma::presence::PresenceState; + /// # use ruma_common::presence::PresenceState; /// # use tokio_stream::{StreamExt as _}; /// # let homeserver_url = "https://example.com".parse().unwrap(); /// # let client = MatrixClient::new(homeserver_url, None);