Remove #![feature(impl_trait_in_bindings)] from doc test

This commit is contained in:
Jonas Platte 2019-11-07 19:31:40 +01:00
parent d1b1e3729b
commit 82f652abb4
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -6,7 +6,6 @@
//! secure connections, and then logging in:
//!
//! ```no_run
//! # #![feature(impl_trait_in_bindings)]
//! use ruma_client::Client;
//!
//! let work = async {
@ -19,12 +18,8 @@
//!
//! // You're now logged in! Write the session to a file if you want to restore it later.
//! // Then start using the API!
//! # Ok(())
//! # Result::<(), ruma_client::Error>::Ok(())
//! };
//!
//! // Start `work` on a futures runtime...
//! # let work_typehint: impl futures::future::TryFuture<Ok = (), Error = ruma_client::Error>
//! # = work;
//! ```
//!
//! You can also pass an existing session to the `Client` constructor to restore a previous session