Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Empty2k12 committed Aug 21, 2020
1 parent 13fb967 commit 486b443
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion influxdb/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! Errors that might happen in the crate
use reqwest;
#[derive(Debug, Fail)]
pub enum Error {
Expand Down
3 changes: 1 addition & 2 deletions influxdb/src/integrations/serde_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
use reqwest::{Client as ReqwestClient, StatusCode, Url};

use serde::{de::DeserializeOwned, Deserialize};
use serde_json;

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

Expand Down Expand Up @@ -110,7 +109,7 @@ impl Client {
return Err(error);
}
};
url.query_pairs_mut().append_pair("q", &read_query.clone());
url.query_pairs_mut().append_pair("q", &read_query);

if !read_query.contains("SELECT") && !read_query.contains("SHOW") {
let error = Error::InvalidQueryError {
Expand Down
1 change: 0 additions & 1 deletion influxdb/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use utilities::{

use influxdb::InfluxDbWriteable;
use influxdb::{Client, Error, Query, Timestamp};
use tokio;

/// INTEGRATION TEST
///
Expand Down

0 comments on commit 486b443

Please sign in to comment.