diff --git a/api_generator/src/api_generator/code_gen/mod.rs b/api_generator/src/api_generator/code_gen/mod.rs index 1d064fe9..6b7cff4d 100644 --- a/api_generator/src/api_generator/code_gen/mod.rs +++ b/api_generator/src/api_generator/code_gen/mod.rs @@ -26,7 +26,6 @@ pub fn use_declarations() -> Tokens { }; use std::borrow::Cow; use serde::Serialize; - use serde_with; ) } diff --git a/api_generator/src/api_generator/code_gen/url/enum_builder.rs b/api_generator/src/api_generator/code_gen/url/enum_builder.rs index 2d151906..17217edd 100644 --- a/api_generator/src/api_generator/code_gen/url/enum_builder.rs +++ b/api_generator/src/api_generator/code_gen/url/enum_builder.rs @@ -18,7 +18,6 @@ use crate::api_generator::code_gen::url::url_builder::{IntoExpr, UrlBuilder}; use crate::api_generator::{code_gen::*, ApiEndpoint, Path}; use inflector::Inflector; -use syn; /// Builder for request url parts enum /// diff --git a/api_generator/src/api_generator/code_gen/url/url_builder.rs b/api_generator/src/api_generator/code_gen/url/url_builder.rs index 970f4317..84654ea3 100644 --- a/api_generator/src/api_generator/code_gen/url/url_builder.rs +++ b/api_generator/src/api_generator/code_gen/url/url_builder.rs @@ -20,7 +20,6 @@ use crate::api_generator::{Path, Type, TypeKind}; use quote::ToTokens; use serde::{Deserialize, Deserializer}; use std::{collections::BTreeMap, fmt, iter::Iterator, str}; -use syn; /// A URL path #[derive(Debug, Deserialize, PartialEq, Clone)] diff --git a/api_generator/src/api_generator/mod.rs b/api_generator/src/api_generator/mod.rs index 23631a7a..edd94051 100644 --- a/api_generator/src/api_generator/mod.rs +++ b/api_generator/src/api_generator/mod.rs @@ -17,7 +17,6 @@ use semver::Version; use serde::de::{MapAccess, Visitor}; use std::marker::PhantomData; use std::str::FromStr; -use url; use void::Void; mod code_gen; diff --git a/api_generator/src/error.rs b/api_generator/src/error.rs index e2f07ae0..4808df9e 100644 --- a/api_generator/src/error.rs +++ b/api_generator/src/error.rs @@ -1,4 +1,3 @@ -use std; use std::fmt; #[derive(Debug, Clone)] diff --git a/elasticsearch/src/error.rs b/elasticsearch/src/error.rs index 2b785140..55874089 100644 --- a/elasticsearch/src/error.rs +++ b/elasticsearch/src/error.rs @@ -15,7 +15,6 @@ * limitations under the License. */ use crate::http::transport::BuildError; -use serde_json; use std::error; use std::fmt; use std::io; diff --git a/elasticsearch/src/generated/namespace_clients/cat.rs b/elasticsearch/src/generated/namespace_clients/cat.rs index 72aafa79..77d0b72d 100644 --- a/elasticsearch/src/generated/namespace_clients/cat.rs +++ b/elasticsearch/src/generated/namespace_clients/cat.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Cat Aliases API"] diff --git a/elasticsearch/src/generated/namespace_clients/ccr.rs b/elasticsearch/src/generated/namespace_clients/ccr.rs index cbb57a00..4044b081 100644 --- a/elasticsearch/src/generated/namespace_clients/ccr.rs +++ b/elasticsearch/src/generated/namespace_clients/ccr.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Ccr Delete Auto Follow Pattern API"] diff --git a/elasticsearch/src/generated/namespace_clients/cluster.rs b/elasticsearch/src/generated/namespace_clients/cluster.rs index 6a4fca48..1a996860 100644 --- a/elasticsearch/src/generated/namespace_clients/cluster.rs +++ b/elasticsearch/src/generated/namespace_clients/cluster.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Cluster Allocation Explain API"] diff --git a/elasticsearch/src/generated/namespace_clients/enrich.rs b/elasticsearch/src/generated/namespace_clients/enrich.rs index 0a26752a..7d4754f0 100644 --- a/elasticsearch/src/generated/namespace_clients/enrich.rs +++ b/elasticsearch/src/generated/namespace_clients/enrich.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Enrich Delete Policy API"] diff --git a/elasticsearch/src/generated/namespace_clients/graph.rs b/elasticsearch/src/generated/namespace_clients/graph.rs index 13ed0008..a601c2b8 100644 --- a/elasticsearch/src/generated/namespace_clients/graph.rs +++ b/elasticsearch/src/generated/namespace_clients/graph.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Graph Explore API"] diff --git a/elasticsearch/src/generated/namespace_clients/ilm.rs b/elasticsearch/src/generated/namespace_clients/ilm.rs index b0482228..eb203be7 100644 --- a/elasticsearch/src/generated/namespace_clients/ilm.rs +++ b/elasticsearch/src/generated/namespace_clients/ilm.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Ilm Delete Lifecycle API"] diff --git a/elasticsearch/src/generated/namespace_clients/indices.rs b/elasticsearch/src/generated/namespace_clients/indices.rs index 68f21452..4ebd3d77 100644 --- a/elasticsearch/src/generated/namespace_clients/indices.rs +++ b/elasticsearch/src/generated/namespace_clients/indices.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Indices Analyze API"] diff --git a/elasticsearch/src/generated/namespace_clients/ingest.rs b/elasticsearch/src/generated/namespace_clients/ingest.rs index 2254aa81..9a2d374c 100644 --- a/elasticsearch/src/generated/namespace_clients/ingest.rs +++ b/elasticsearch/src/generated/namespace_clients/ingest.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Ingest Delete Pipeline API"] diff --git a/elasticsearch/src/generated/namespace_clients/license.rs b/elasticsearch/src/generated/namespace_clients/license.rs index ab282bac..f0b26af9 100644 --- a/elasticsearch/src/generated/namespace_clients/license.rs +++ b/elasticsearch/src/generated/namespace_clients/license.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the License Delete API"] diff --git a/elasticsearch/src/generated/namespace_clients/migration.rs b/elasticsearch/src/generated/namespace_clients/migration.rs index 6d137812..bc026058 100644 --- a/elasticsearch/src/generated/namespace_clients/migration.rs +++ b/elasticsearch/src/generated/namespace_clients/migration.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Migration Deprecations API"] diff --git a/elasticsearch/src/generated/namespace_clients/ml.rs b/elasticsearch/src/generated/namespace_clients/ml.rs index 98b913fc..7b26f846 100644 --- a/elasticsearch/src/generated/namespace_clients/ml.rs +++ b/elasticsearch/src/generated/namespace_clients/ml.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Ml Close Job API"] diff --git a/elasticsearch/src/generated/namespace_clients/nodes.rs b/elasticsearch/src/generated/namespace_clients/nodes.rs index 5cfa2a29..650adadb 100644 --- a/elasticsearch/src/generated/namespace_clients/nodes.rs +++ b/elasticsearch/src/generated/namespace_clients/nodes.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Nodes Hot Threads API"] diff --git a/elasticsearch/src/generated/namespace_clients/security.rs b/elasticsearch/src/generated/namespace_clients/security.rs index a5a86c71..cf0b47b6 100644 --- a/elasticsearch/src/generated/namespace_clients/security.rs +++ b/elasticsearch/src/generated/namespace_clients/security.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Security Authenticate API"] diff --git a/elasticsearch/src/generated/namespace_clients/slm.rs b/elasticsearch/src/generated/namespace_clients/slm.rs index 82401de7..d21e10e7 100644 --- a/elasticsearch/src/generated/namespace_clients/slm.rs +++ b/elasticsearch/src/generated/namespace_clients/slm.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Slm Delete Lifecycle API"] diff --git a/elasticsearch/src/generated/namespace_clients/snapshot.rs b/elasticsearch/src/generated/namespace_clients/snapshot.rs index 8f590221..a85fec9d 100644 --- a/elasticsearch/src/generated/namespace_clients/snapshot.rs +++ b/elasticsearch/src/generated/namespace_clients/snapshot.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Snapshot Cleanup Repository API"] diff --git a/elasticsearch/src/generated/namespace_clients/sql.rs b/elasticsearch/src/generated/namespace_clients/sql.rs index 485ae5e3..8b792906 100644 --- a/elasticsearch/src/generated/namespace_clients/sql.rs +++ b/elasticsearch/src/generated/namespace_clients/sql.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Sql Clear Cursor API"] diff --git a/elasticsearch/src/generated/namespace_clients/ssl.rs b/elasticsearch/src/generated/namespace_clients/ssl.rs index acfdf640..f2577f45 100644 --- a/elasticsearch/src/generated/namespace_clients/ssl.rs +++ b/elasticsearch/src/generated/namespace_clients/ssl.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Ssl Certificates API"] diff --git a/elasticsearch/src/generated/namespace_clients/tasks.rs b/elasticsearch/src/generated/namespace_clients/tasks.rs index 51de832f..e5092298 100644 --- a/elasticsearch/src/generated/namespace_clients/tasks.rs +++ b/elasticsearch/src/generated/namespace_clients/tasks.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Tasks Cancel API"] diff --git a/elasticsearch/src/generated/namespace_clients/watcher.rs b/elasticsearch/src/generated/namespace_clients/watcher.rs index 50f6275b..3cba1806 100644 --- a/elasticsearch/src/generated/namespace_clients/watcher.rs +++ b/elasticsearch/src/generated/namespace_clients/watcher.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Watcher Ack Watch API"] diff --git a/elasticsearch/src/generated/namespace_clients/xpack.rs b/elasticsearch/src/generated/namespace_clients/xpack.rs index ac87d057..c3fd7d1d 100644 --- a/elasticsearch/src/generated/namespace_clients/xpack.rs +++ b/elasticsearch/src/generated/namespace_clients/xpack.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Xpack Info API"] diff --git a/elasticsearch/src/generated/root.rs b/elasticsearch/src/generated/root.rs index 8f90555f..0b93b35e 100644 --- a/elasticsearch/src/generated/root.rs +++ b/elasticsearch/src/generated/root.rs @@ -27,7 +27,6 @@ use crate::{ params::*, }; use serde::Serialize; -use serde_with; use std::borrow::Cow; #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Bulk API"] diff --git a/elasticsearch/src/http/transport.rs b/elasticsearch/src/http/transport.rs index f6f6a926..051fd911 100644 --- a/elasticsearch/src/http/transport.rs +++ b/elasticsearch/src/http/transport.rs @@ -14,7 +14,6 @@ use crate::{ }, }; -use base64; use base64::write::EncoderWriter as Base64Encoder; use bytes::BytesMut; use serde::Serialize;