@@ -29,12 +29,12 @@ impl Client {
2929 /// Create a new [`Client`](struct.Client.html) once the [`Connect`](struct.Connect.html) resolves.
3030 ///
3131 /// ```rust,no_run
32- /// # #![feature(async_await, await_macro )]
32+ /// # #![feature(async_await)]
3333 /// # use tikv_client::{Config, raw::Client};
3434 /// # use futures::prelude::*;
3535 /// # futures::executor::block_on(async {
3636 /// let connect = Client::new(Config::default());
37- /// let client = await!( connect) .unwrap();
37+ /// let client = connect.await .unwrap();
3838 /// # });
3939 /// ```
4040 #[ cfg_attr( feature = "cargo-clippy" , allow( clippy:: new_ret_no_self) ) ]
@@ -53,15 +53,15 @@ impl Client {
5353 /// given key.
5454 ///
5555 /// ```rust,no_run
56- /// # #![feature(async_await, await_macro )]
56+ /// # #![feature(async_await)]
5757 /// # use tikv_client::{Value, Config, raw::Client};
5858 /// # use futures::prelude::*;
5959 /// # futures::executor::block_on(async {
6060 /// # let connecting_client = Client::new(Config::new(vec!["192.168.0.100", "192.168.0.101"]));
61- /// # let connected_client = await!( connecting_client) .unwrap();
61+ /// # let connected_client = connecting_client.await .unwrap();
6262 /// let key = "TiKV";
6363 /// let req = connected_client.get(key);
64- /// let result: Option<Value> = await!( req) .unwrap();
64+ /// let result: Option<Value> = req.await .unwrap();
6565 /// # });
6666 /// ```
6767 pub fn get ( & self , key : impl Into < Key > ) -> Get {
@@ -74,15 +74,15 @@ impl Client {
7474 /// given keys.
7575 ///
7676 /// ```rust,no_run
77- /// # #![feature(async_await, await_macro )]
77+ /// # #![feature(async_await)]
7878 /// # use tikv_client::{KvPair, Config, raw::Client};
7979 /// # use futures::prelude::*;
8080 /// # futures::executor::block_on(async {
8181 /// # let connecting_client = Client::new(Config::new(vec!["192.168.0.100", "192.168.0.101"]));
82- /// # let connected_client = await!( connecting_client) .unwrap();
82+ /// # let connected_client = connecting_client.await .unwrap();
8383 /// let keys = vec!["TiKV", "TiDB"];
8484 /// let req = connected_client.batch_get(keys);
85- /// let result: Vec<KvPair> = await!( req) .unwrap();
85+ /// let result: Vec<KvPair> = req.await .unwrap();
8686 /// # });
8787 /// ```
8888 pub fn batch_get ( & self , keys : impl IntoIterator < Item = impl Into < Key > > ) -> BatchGet {
@@ -97,16 +97,16 @@ impl Client {
9797 /// Once resolved this request will result in the setting of the value associated with the given key.
9898 ///
9999 /// ```rust,no_run
100- /// # #![feature(async_await, await_macro )]
100+ /// # #![feature(async_await)]
101101 /// # use tikv_client::{Key, Value, Config, raw::Client};
102102 /// # use futures::prelude::*;
103103 /// # futures::executor::block_on(async {
104104 /// # let connecting_client = Client::new(Config::new(vec!["192.168.0.100", "192.168.0.101"]));
105- /// # let connected_client = await!( connecting_client) .unwrap();
105+ /// # let connected_client = connecting_client.await .unwrap();
106106 /// let key = "TiKV";
107107 /// let val = "TiKV";
108108 /// let req = connected_client.put(key, val);
109- /// let result: () = await!( req) .unwrap();
109+ /// let result: () = req.await .unwrap();
110110 /// # });
111111 /// ```
112112 pub fn put ( & self , key : impl Into < Key > , value : impl Into < Value > ) -> Put {
@@ -118,17 +118,17 @@ impl Client {
118118 /// Once resolved this request will result in the setting of the value associated with the given key.
119119 ///
120120 /// ```rust,no_run
121- /// # #![feature(async_await, await_macro )]
121+ /// # #![feature(async_await)]
122122 /// # use tikv_client::{Error, Result, KvPair, Key, Value, Config, raw::Client};
123123 /// # use futures::prelude::*;
124124 /// # futures::executor::block_on(async {
125125 /// # let connecting_client = Client::new(Config::new(vec!["192.168.0.100", "192.168.0.101"]));
126- /// # let connected_client = await!( connecting_client) .unwrap();
126+ /// # let connected_client = connecting_client.await .unwrap();
127127 /// let kvpair1 = ("PD", "Go");
128128 /// let kvpair2 = ("TiKV", "Rust");
129129 /// let iterable = vec![kvpair1, kvpair2];
130130 /// let req = connected_client.batch_put(iterable);
131- /// let result: () = await!( req) .unwrap();
131+ /// let result: () = req.await .unwrap();
132132 /// # });
133133 /// ```
134134 pub fn batch_put ( & self , pairs : impl IntoIterator < Item = impl Into < KvPair > > ) -> BatchPut {
@@ -143,15 +143,15 @@ impl Client {
143143 /// Once resolved this request will result in the deletion of the given key.
144144 ///
145145 /// ```rust,no_run
146- /// # #![feature(async_await, await_macro )]
146+ /// # #![feature(async_await)]
147147 /// # use tikv_client::{Key, Config, raw::Client};
148148 /// # use futures::prelude::*;
149149 /// # futures::executor::block_on(async {
150150 /// # let connecting_client = Client::new(Config::new(vec!["192.168.0.100", "192.168.0.101"]));
151- /// # let connected_client = await!( connecting_client) .unwrap();
151+ /// # let connected_client = connecting_client.await .unwrap();
152152 /// let key = "TiKV";
153153 /// let req = connected_client.delete(key);
154- /// let result: () = await!( req) .unwrap();
154+ /// let result: () = req.await .unwrap();
155155 /// # });
156156 /// ```
157157 pub fn delete ( & self , key : impl Into < Key > ) -> Delete {
@@ -163,15 +163,15 @@ impl Client {
163163 /// Once resolved this request will result in the deletion of the given keys.
164164 ///
165165 /// ```rust,no_run
166- /// # #![feature(async_await, await_macro )]
166+ /// # #![feature(async_await)]
167167 /// # use tikv_client::{Config, raw::Client};
168168 /// # use futures::prelude::*;
169169 /// # futures::executor::block_on(async {
170170 /// # let connecting_client = Client::new(Config::new(vec!["192.168.0.100", "192.168.0.101"]));
171- /// # let connected_client = await!( connecting_client) .unwrap();
171+ /// # let connected_client = connecting_client.await .unwrap();
172172 /// let keys = vec!["TiKV", "TiDB"];
173173 /// let req = connected_client.batch_delete(keys);
174- /// let result: () = await!( req) .unwrap();
174+ /// let result: () = req.await .unwrap();
175175 /// # });
176176 /// ```
177177 pub fn batch_delete ( & self , keys : impl IntoIterator < Item = impl Into < Key > > ) -> BatchDelete {
@@ -186,15 +186,15 @@ impl Client {
186186 /// Once resolved this request will result in a scanner over the given keys.
187187 ///
188188 /// ```rust,no_run
189- /// # #![feature(async_await, await_macro )]
189+ /// # #![feature(async_await)]
190190 /// # use tikv_client::{KvPair, Config, raw::Client};
191191 /// # use futures::prelude::*;
192192 /// # futures::executor::block_on(async {
193193 /// # let connecting_client = Client::new(Config::new(vec!["192.168.0.100", "192.168.0.101"]));
194- /// # let connected_client = await!( connecting_client) .unwrap();
194+ /// # let connected_client = connecting_client.await .unwrap();
195195 /// let inclusive_range = "TiKV"..="TiDB";
196196 /// let req = connected_client.scan(inclusive_range, 2);
197- /// let result: Vec<KvPair> = await!( req) .unwrap();
197+ /// let result: Vec<KvPair> = req.await .unwrap();
198198 /// # });
199199 /// ```
200200 pub fn scan ( & self , range : impl KeyRange , limit : u32 ) -> Scan {
@@ -206,17 +206,17 @@ impl Client {
206206 /// Once resolved this request will result in a set of scanners over the given keys.
207207 ///
208208 /// ```rust,no_run
209- /// # #![feature(async_await, await_macro )]
209+ /// # #![feature(async_await)]
210210 /// # use tikv_client::{Key, Config, raw::Client};
211211 /// # use futures::prelude::*;
212212 /// # futures::executor::block_on(async {
213213 /// # let connecting_client = Client::new(Config::new(vec!["192.168.0.100", "192.168.0.101"]));
214- /// # let connected_client = await!( connecting_client) .unwrap();
214+ /// # let connected_client = connecting_client.await .unwrap();
215215 /// let inclusive_range1 = "TiDB"..="TiKV";
216216 /// let inclusive_range2 = "TiKV"..="TiSpark";
217217 /// let iterable = vec![inclusive_range1, inclusive_range2];
218218 /// let req = connected_client.batch_scan(iterable, 2);
219- /// let result = await!( req) ;
219+ /// let result = req.await ;
220220 /// # });
221221 /// ```
222222 pub fn batch_scan (
@@ -238,15 +238,15 @@ impl Client {
238238 /// Once resolved this request will result in the deletion of all keys over the given range.
239239 ///
240240 /// ```rust,no_run
241- /// # #![feature(async_await, await_macro )]
241+ /// # #![feature(async_await)]
242242 /// # use tikv_client::{Key, Config, raw::Client};
243243 /// # use futures::prelude::*;
244244 /// # futures::executor::block_on(async {
245245 /// # let connecting_client = Client::new(Config::new(vec!["192.168.0.100", "192.168.0.101"]));
246- /// # let connected_client = await!( connecting_client) .unwrap();
246+ /// # let connected_client = connecting_client.await .unwrap();
247247 /// let inclusive_range = "TiKV"..="TiDB";
248248 /// let req = connected_client.delete_range(inclusive_range);
249- /// let result: () = await!( req) .unwrap();
249+ /// let result: () = req.await .unwrap();
250250 /// # });
251251 /// ```
252252 pub fn delete_range ( & self , range : impl KeyRange ) -> DeleteRange {
@@ -259,13 +259,13 @@ impl Client {
259259/// Once resolved it will result in a connected [`Client`](struct.Client.html).
260260///
261261/// ```rust,no_run
262- /// # #![feature(async_await, await_macro )]
262+ /// # #![feature(async_await)]
263263/// use tikv_client::{Config, raw::{Client, Connect}};
264264/// use futures::prelude::*;
265265///
266266/// # futures::executor::block_on(async {
267267/// let connect: Connect = Client::new(Config::default());
268- /// let client: Client = await!( connect) .unwrap();
268+ /// let client: Client = connect.await .unwrap();
269269/// # });
270270/// ```
271271pub struct Connect {
0 commit comments