File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
integrations/serde_integration Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 16
16
//! ```
17
17
18
18
use futures_util:: TryFutureExt ;
19
- #[ cfg( feature = "reqwest" ) ]
20
19
use reqwest:: { Client as HttpClient , RequestBuilder , Response as HttpResponse } ;
21
20
use std:: collections:: { BTreeMap , HashMap } ;
22
21
use std:: fmt:: { self , Debug , Formatter } ;
@@ -166,7 +165,6 @@ impl Client {
166
165
const BUILD_HEADER : & str = "X-Influxdb-Build" ;
167
166
const VERSION_HEADER : & str = "X-Influxdb-Version" ;
168
167
169
- #[ cfg( feature = "reqwest" ) ]
170
168
let ( build, version) = {
171
169
let hdrs = res. headers ( ) ;
172
170
(
@@ -256,7 +254,6 @@ impl Client {
256
254
. await ?;
257
255
check_status ( & res) ?;
258
256
259
- #[ cfg( feature = "reqwest" ) ]
260
257
let body = res. text ( ) ;
261
258
262
259
let s = body. await . map_err ( |_| Error :: DeserializationError {
Original file line number Diff line number Diff line change @@ -152,8 +152,7 @@ impl Client {
152
152
error : err. to_string ( ) ,
153
153
} ) ?;
154
154
check_status ( & res) ?;
155
-
156
- #[ cfg( feature = "reqwest" ) ]
155
+
157
156
let body = res. bytes ( ) ;
158
157
159
158
let body = body. await . map_err ( |err| Error :: ProtocolError {
You can’t perform that action at this time.
0 commit comments