Skip to content

Commit 5a1b039

Browse files
committed
remove reqwest feature gates
1 parent ffc0575 commit 5a1b039

File tree

2 files changed

+1
-5
lines changed
  • influxdb/src

2 files changed

+1
-5
lines changed

influxdb/src/client/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
//! ```
1717
1818
use futures_util::TryFutureExt;
19-
#[cfg(feature = "reqwest")]
2019
use reqwest::{Client as HttpClient, RequestBuilder, Response as HttpResponse};
2120
use std::collections::{BTreeMap, HashMap};
2221
use std::fmt::{self, Debug, Formatter};
@@ -166,7 +165,6 @@ impl Client {
166165
const BUILD_HEADER: &str = "X-Influxdb-Build";
167166
const VERSION_HEADER: &str = "X-Influxdb-Version";
168167

169-
#[cfg(feature = "reqwest")]
170168
let (build, version) = {
171169
let hdrs = res.headers();
172170
(
@@ -256,7 +254,6 @@ impl Client {
256254
.await?;
257255
check_status(&res)?;
258256

259-
#[cfg(feature = "reqwest")]
260257
let body = res.text();
261258

262259
let s = body.await.map_err(|_| Error::DeserializationError {

influxdb/src/integrations/serde_integration/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ impl Client {
152152
error: err.to_string(),
153153
})?;
154154
check_status(&res)?;
155-
156-
#[cfg(feature = "reqwest")]
155+
157156
let body = res.bytes();
158157

159158
let body = body.await.map_err(|err| Error::ProtocolError {

0 commit comments

Comments
 (0)