Skip to content

Commit 1c7d0dc

Browse files
committed
Resolve clippy warnings
1 parent 10876c6 commit 1c7d0dc

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

influxdb/src/error.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//! Errors that might happen in the crate
2-
use reqwest;
32
43
#[derive(Debug, Fail)]
54
pub enum Error {

influxdb/src/integrations/serde_integration.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
use reqwest::{Client as ReqwestClient, StatusCode, Url};
5050

5151
use serde::{de::DeserializeOwned, Deserialize};
52-
use serde_json;
5352

5453
use crate::{Client, Error, Query, ReadQuery};
5554

@@ -110,7 +109,7 @@ impl Client {
110109
return Err(error);
111110
}
112111
};
113-
url.query_pairs_mut().append_pair("q", &read_query.clone());
112+
url.query_pairs_mut().append_pair("q", &read_query);
114113

115114
if !read_query.contains("SELECT") && !read_query.contains("SHOW") {
116115
let error = Error::InvalidQueryError {

influxdb/tests/integration_tests.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use utilities::{
88

99
use influxdb::InfluxDbWriteable;
1010
use influxdb::{Client, Error, Query, Timestamp};
11-
use tokio;
1211

1312
/// INTEGRATION TEST
1413
///

0 commit comments

Comments
 (0)