client: Fix tests under client-api feature flag
This commit is contained in:
parent
90be9acf08
commit
f161c8117c
@ -55,3 +55,4 @@ serde_json = "1.0.61"
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
ruma-client-api = { version = "0.12.3", path = "../ruma-client-api", features = ["client"] }
|
ruma-client-api = { version = "0.12.3", path = "../ruma-client-api", features = ["client"] }
|
||||||
|
tokio-stream = "0.1.8"
|
||||||
|
@ -86,7 +86,7 @@ impl<C: HttpClient> Client<C> {
|
|||||||
/// use std::time::Duration;
|
/// use std::time::Duration;
|
||||||
///
|
///
|
||||||
/// # type MatrixClient = ruma_client::Client<ruma_client::http_client::Dummy>;
|
/// # type MatrixClient = ruma_client::Client<ruma_client::http_client::Dummy>;
|
||||||
/// # use ruma::presence::PresenceState;
|
/// # use ruma_common::presence::PresenceState;
|
||||||
/// # use tokio_stream::{StreamExt as _};
|
/// # use tokio_stream::{StreamExt as _};
|
||||||
/// # let homeserver_url = "https://example.com".parse().unwrap();
|
/// # let homeserver_url = "https://example.com".parse().unwrap();
|
||||||
/// # let client = MatrixClient::new(homeserver_url, None);
|
/// # let client = MatrixClient::new(homeserver_url, None);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user