ruma-client: Fix doc tests with default features
This commit is contained in:
parent
9af36342ff
commit
2a97aa9c4e
@ -34,9 +34,9 @@
|
|||||||
//! application service that does not need to log in, but uses the access_token directly:
|
//! application service that does not need to log in, but uses the access_token directly:
|
||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! # type HttpClient = ruma_client::http_client::Dummy;
|
//! # #[cfg(feature = "client-api")]
|
||||||
//! #
|
|
||||||
//! # async {
|
//! # async {
|
||||||
|
//! # type HttpClient = ruma_client::http_client::Dummy;
|
||||||
//! let homeserver_url = "https://example.com".to_owned();
|
//! let homeserver_url = "https://example.com".to_owned();
|
||||||
//! let client = ruma_client::Client::builder()
|
//! let client = ruma_client::Client::builder()
|
||||||
//! .homeserver_url(homeserver_url)
|
//! .homeserver_url(homeserver_url)
|
||||||
@ -59,8 +59,9 @@
|
|||||||
//! For example:
|
//! For example:
|
||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! # let homeserver_url = "https://example.com".to_owned();
|
//! # #[cfg(feature = "client-api")]
|
||||||
//! # async {
|
//! # async {
|
||||||
|
//! # let homeserver_url = "https://example.com".to_owned();
|
||||||
//! # let client = ruma_client::Client::builder()
|
//! # let client = ruma_client::Client::builder()
|
||||||
//! # .homeserver_url(homeserver_url)
|
//! # .homeserver_url(homeserver_url)
|
||||||
//! # .build::<ruma_client::http_client::Dummy>()
|
//! # .build::<ruma_client::http_client::Dummy>()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user