diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000000..639f4f17d9 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.74.0" diff --git a/sdk/core/Cargo.toml b/sdk/core/Cargo.toml index 2aec92befe..db699cd67d 100644 --- a/sdk/core/Cargo.toml +++ b/sdk/core/Cargo.toml @@ -11,7 +11,7 @@ documentation = "https://docs.rs/azure_core" keywords = ["sdk", "azure", "rest", "iot", "cloud"] categories = ["api-bindings"] edition = "2021" -rust-version = "1.70.0" +rust-version = "1.74.0" [dependencies] async-trait = "0.1" diff --git a/sdk/core/src/date/iso8601.rs b/sdk/core/src/date/iso8601.rs index 5ed35bbe19..10a06b6b73 100644 --- a/sdk/core/src/date/iso8601.rs +++ b/sdk/core/src/date/iso8601.rs @@ -1,5 +1,5 @@ use crate::error::{ErrorKind, ResultExt}; -use serde::{self, de, Deserialize, Deserializer, Serializer}; +use serde::{de, Deserialize, Deserializer, Serializer}; use time::{ format_description::well_known::{ iso8601::{Config, EncodedConfig, TimePrecision}, diff --git a/sdk/core/src/date/rfc1123.rs b/sdk/core/src/date/rfc1123.rs index 869febfc2a..99f5b5fab3 100644 --- a/sdk/core/src/date/rfc1123.rs +++ b/sdk/core/src/date/rfc1123.rs @@ -1,5 +1,5 @@ use crate::date::{parse_rfc1123, to_rfc1123}; -use serde::{self, de, Deserialize, Deserializer, Serializer}; +use serde::{de, Deserialize, Deserializer, Serializer}; use time::OffsetDateTime; pub fn deserialize<'de, D>(deserializer: D) -> Result diff --git a/sdk/core/src/request_options/max_results.rs b/sdk/core/src/request_options/max_results.rs index c761657f5f..bfdb35ec35 100644 --- a/sdk/core/src/request_options/max_results.rs +++ b/sdk/core/src/request_options/max_results.rs @@ -1,5 +1,4 @@ use crate::{AppendToUrlQuery, Url}; -use std::convert::TryFrom; use std::num::NonZeroU32; // This type forbids zero as value. diff --git a/sdk/core/src/request_options/range.rs b/sdk/core/src/request_options/range.rs index d450c51d04..19ae8d1147 100644 --- a/sdk/core/src/request_options/range.rs +++ b/sdk/core/src/request_options/range.rs @@ -1,6 +1,5 @@ use crate::error::{Error, ErrorKind, ResultExt}; use crate::headers::{self, AsHeaders, HeaderName, HeaderValue}; -use std::convert::From; use std::fmt; use std::ops::{Range as StdRange, RangeFrom}; use std::str::FromStr; diff --git a/sdk/core/src/tokio/fs.rs b/sdk/core/src/tokio/fs.rs index 0ef3898422..0a0c2da681 100644 --- a/sdk/core/src/tokio/fs.rs +++ b/sdk/core/src/tokio/fs.rs @@ -1,7 +1,6 @@ use crate::{ request::Body, seekable_stream::{SeekableStream, DEFAULT_BUFFER_SIZE}, - setters, }; use futures::{task::Poll, Future}; use std::{cmp::min, io::SeekFrom, pin::Pin, sync::Arc, task::Context}; diff --git a/sdk/data_cosmos/src/authorization_policy.rs b/sdk/data_cosmos/src/authorization_policy.rs index e5855e353f..890f2d470b 100644 --- a/sdk/data_cosmos/src/authorization_policy.rs +++ b/sdk/data_cosmos/src/authorization_policy.rs @@ -245,7 +245,6 @@ fn string_to_sign( #[cfg(test)] mod tests { use super::*; - use azure_core::{date, Url}; #[test] fn string_to_sign_00() { diff --git a/sdk/data_cosmos/src/clients/collection.rs b/sdk/data_cosmos/src/clients/collection.rs index 17341c851e..de69388306 100644 --- a/sdk/data_cosmos/src/clients/collection.rs +++ b/sdk/data_cosmos/src/clients/collection.rs @@ -1,4 +1,3 @@ -use super::{DatabaseClient, UserDefinedFunctionClient}; use crate::clients::*; use crate::operations::*; use crate::resources::collection::PartitionKey; diff --git a/sdk/data_cosmos/src/operations/create_database.rs b/sdk/data_cosmos/src/operations/create_database.rs index 841a169aa0..3f835353b3 100644 --- a/sdk/data_cosmos/src/operations/create_database.rs +++ b/sdk/data_cosmos/src/operations/create_database.rs @@ -1,4 +1,4 @@ -use crate::{headers::from_headers::*, prelude::*, resources::Database, ResourceQuota}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ headers::{etag_from_headers, session_token_from_headers}, Response as HttpResponse, diff --git a/sdk/data_cosmos/src/operations/create_document.rs b/sdk/data_cosmos/src/operations/create_document.rs index fcfa0e33de..f77bff4fd3 100644 --- a/sdk/data_cosmos/src/operations/create_document.rs +++ b/sdk/data_cosmos/src/operations/create_document.rs @@ -1,12 +1,10 @@ use crate::cosmos_entity::{add_as_partition_key_header_serialized, serialize_partition_key}; use crate::headers::from_headers::*; use crate::prelude::*; -use crate::resources::document::DocumentAttributes; use crate::ResourceQuota; use azure_core::headers::{etag_from_headers, session_token_from_headers}; use azure_core::{prelude::*, StatusCode}; use serde::Serialize; -use std::convert::TryFrom; use time::OffsetDateTime; use azure_core::Response as HttpResponse; diff --git a/sdk/data_cosmos/src/operations/create_or_replace_attachment.rs b/sdk/data_cosmos/src/operations/create_or_replace_attachment.rs index 9014139716..b0bdf52fb6 100644 --- a/sdk/data_cosmos/src/operations/create_or_replace_attachment.rs +++ b/sdk/data_cosmos/src/operations/create_or_replace_attachment.rs @@ -1,4 +1,4 @@ -use crate::{headers::from_headers::*, prelude::*, resources::Attachment, ResourceQuota}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ headers::{etag_from_headers, session_token_from_headers}, Response as HttpResponse, SessionToken, diff --git a/sdk/data_cosmos/src/operations/create_or_replace_slug_attachment.rs b/sdk/data_cosmos/src/operations/create_or_replace_slug_attachment.rs index b5dfcf7a86..bedcbd06e5 100644 --- a/sdk/data_cosmos/src/operations/create_or_replace_slug_attachment.rs +++ b/sdk/data_cosmos/src/operations/create_or_replace_slug_attachment.rs @@ -1,4 +1,4 @@ -use crate::{headers::from_headers::*, prelude::*, resources::Attachment, ResourceQuota}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ content_type, headers::{ diff --git a/sdk/data_cosmos/src/operations/create_or_replace_trigger.rs b/sdk/data_cosmos/src/operations/create_or_replace_trigger.rs index 4154105692..3b0d2d2c71 100644 --- a/sdk/data_cosmos/src/operations/create_or_replace_trigger.rs +++ b/sdk/data_cosmos/src/operations/create_or_replace_trigger.rs @@ -1,6 +1,4 @@ -use crate::{ - headers::from_headers::*, prelude::*, resources::trigger::*, resources::Trigger, ResourceQuota, -}; +use crate::{headers::from_headers::*, prelude::*, resources::trigger::*, ResourceQuota}; use azure_core::{ headers::{etag_from_headers, session_token_from_headers}, Response as HttpResponse, diff --git a/sdk/data_cosmos/src/operations/create_or_replace_user_defined_function.rs b/sdk/data_cosmos/src/operations/create_or_replace_user_defined_function.rs index 0b3f6e9a93..9fc108e86d 100644 --- a/sdk/data_cosmos/src/operations/create_or_replace_user_defined_function.rs +++ b/sdk/data_cosmos/src/operations/create_or_replace_user_defined_function.rs @@ -1,4 +1,4 @@ -use crate::{headers::from_headers::*, prelude::*, resources::UserDefinedFunction, ResourceQuota}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ headers::{etag_from_headers, session_token_from_headers}, Response as HttpResponse, diff --git a/sdk/data_cosmos/src/operations/create_stored_procedure.rs b/sdk/data_cosmos/src/operations/create_stored_procedure.rs index 2e169c479b..871247a120 100644 --- a/sdk/data_cosmos/src/operations/create_stored_procedure.rs +++ b/sdk/data_cosmos/src/operations/create_stored_procedure.rs @@ -1,4 +1,4 @@ -use crate::{headers::from_headers::*, prelude::*, resources::StoredProcedure, ResourceQuota}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ headers::{etag_from_headers, session_token_from_headers}, Response as HttpResponse, diff --git a/sdk/data_cosmos/src/operations/get_attachment.rs b/sdk/data_cosmos/src/operations/get_attachment.rs index c09d963fcb..b1cfa59067 100644 --- a/sdk/data_cosmos/src/operations/get_attachment.rs +++ b/sdk/data_cosmos/src/operations/get_attachment.rs @@ -1,7 +1,4 @@ -use crate::{ - headers::from_headers::*, prelude::*, resources::document::IndexingDirective, - resources::Attachment, ResourceQuota, -}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ headers::{content_type_from_headers, etag_from_headers, session_token_from_headers}, prelude::*, diff --git a/sdk/data_cosmos/src/operations/get_document.rs b/sdk/data_cosmos/src/operations/get_document.rs index 1665ba2533..639bdd916b 100644 --- a/sdk/data_cosmos/src/operations/get_document.rs +++ b/sdk/data_cosmos/src/operations/get_document.rs @@ -2,7 +2,6 @@ use std::marker::PhantomData; use crate::headers::from_headers::*; use crate::prelude::*; -use crate::resources::Document; use crate::ResourceQuota; use azure_core::headers::{etag_from_headers, session_token_from_headers, Headers}; use azure_core::{from_json, prelude::*, StatusCode}; diff --git a/sdk/data_cosmos/src/operations/get_partition_key_ranges.rs b/sdk/data_cosmos/src/operations/get_partition_key_ranges.rs index da9c72f2c3..7d2cf55a1a 100644 --- a/sdk/data_cosmos/src/operations/get_partition_key_ranges.rs +++ b/sdk/data_cosmos/src/operations/get_partition_key_ranges.rs @@ -1,4 +1,4 @@ -use crate::{headers::from_headers::*, prelude::*, resources::ResourceType}; +use crate::{headers::from_headers::*, prelude::*}; use azure_core::{ headers::{item_count_from_headers, session_token_from_headers}, prelude::*, diff --git a/sdk/data_cosmos/src/operations/list_attachments.rs b/sdk/data_cosmos/src/operations/list_attachments.rs index 4f8fb9cb4f..36760422c3 100644 --- a/sdk/data_cosmos/src/operations/list_attachments.rs +++ b/sdk/data_cosmos/src/operations/list_attachments.rs @@ -1,7 +1,4 @@ -use crate::{ - headers::from_headers::*, prelude::*, resources::Attachment, resources::ResourceType, - ResourceQuota, -}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ headers::{ continuation_token_from_headers_optional, item_count_from_headers, diff --git a/sdk/data_cosmos/src/operations/list_collections.rs b/sdk/data_cosmos/src/operations/list_collections.rs index 9d2d0b3a2e..86eeaf5dd3 100644 --- a/sdk/data_cosmos/src/operations/list_collections.rs +++ b/sdk/data_cosmos/src/operations/list_collections.rs @@ -1,4 +1,4 @@ -use crate::{headers::from_headers::*, prelude::*, resources::Collection, ResourceQuota}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ headers::{continuation_token_from_headers_optional, session_token_from_headers}, prelude::*, diff --git a/sdk/data_cosmos/src/operations/list_databases.rs b/sdk/data_cosmos/src/operations/list_databases.rs index 8b1daba8d2..3bd62c18da 100644 --- a/sdk/data_cosmos/src/operations/list_databases.rs +++ b/sdk/data_cosmos/src/operations/list_databases.rs @@ -1,4 +1,4 @@ -use crate::{headers::from_headers::*, prelude::*, resources::Database, ResourceQuota}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ headers::{continuation_token_from_headers_optional, session_token_from_headers}, prelude::*, diff --git a/sdk/data_cosmos/src/operations/list_documents.rs b/sdk/data_cosmos/src/operations/list_documents.rs index efeee4cb14..c69a04f3f8 100644 --- a/sdk/data_cosmos/src/operations/list_documents.rs +++ b/sdk/data_cosmos/src/operations/list_documents.rs @@ -1,7 +1,5 @@ use crate::headers::from_headers::*; use crate::prelude::*; -use crate::resources::document::{Document, DocumentAttributes}; -use crate::resources::ResourceType; use crate::ResourceQuota; use azure_core::headers::{ continuation_token_from_headers_optional, item_count_from_headers, session_token_from_headers, diff --git a/sdk/data_cosmos/src/operations/list_permissions.rs b/sdk/data_cosmos/src/operations/list_permissions.rs index 465b6045c7..7b42b986a3 100644 --- a/sdk/data_cosmos/src/operations/list_permissions.rs +++ b/sdk/data_cosmos/src/operations/list_permissions.rs @@ -1,4 +1,4 @@ -use crate::{headers::from_headers::*, prelude::*, resources::Permission, resources::ResourceType}; +use crate::{headers::from_headers::*, prelude::*}; use azure_core::{ headers::{continuation_token_from_headers_optional, session_token_from_headers}, prelude::*, diff --git a/sdk/data_cosmos/src/operations/list_stored_procedures.rs b/sdk/data_cosmos/src/operations/list_stored_procedures.rs index 6dbfe2cd98..f382632394 100644 --- a/sdk/data_cosmos/src/operations/list_stored_procedures.rs +++ b/sdk/data_cosmos/src/operations/list_stored_procedures.rs @@ -1,7 +1,4 @@ -use crate::{ - headers::from_headers::*, prelude::*, resources::ResourceType, resources::StoredProcedure, - ResourceQuota, -}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ headers::{continuation_token_from_headers_optional, session_token_from_headers}, prelude::*, diff --git a/sdk/data_cosmos/src/operations/list_triggers.rs b/sdk/data_cosmos/src/operations/list_triggers.rs index cbd5e547f9..8041d82620 100644 --- a/sdk/data_cosmos/src/operations/list_triggers.rs +++ b/sdk/data_cosmos/src/operations/list_triggers.rs @@ -1,4 +1,4 @@ -use crate::{headers::from_headers::*, prelude::*, resources::ResourceType, ResourceQuota}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ headers::item_count_from_headers, headers::{continuation_token_from_headers_optional, session_token_from_headers}, diff --git a/sdk/data_cosmos/src/operations/list_user_defined_functions.rs b/sdk/data_cosmos/src/operations/list_user_defined_functions.rs index 9627e46c91..74ccd4c7ab 100644 --- a/sdk/data_cosmos/src/operations/list_user_defined_functions.rs +++ b/sdk/data_cosmos/src/operations/list_user_defined_functions.rs @@ -1,7 +1,4 @@ -use crate::{ - headers::from_headers::*, prelude::*, resources::ResourceType, resources::UserDefinedFunction, - ResourceQuota, -}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ headers::{ continuation_token_from_headers_optional, item_count_from_headers, diff --git a/sdk/data_cosmos/src/operations/list_users.rs b/sdk/data_cosmos/src/operations/list_users.rs index 6b0cf92986..3387f02449 100644 --- a/sdk/data_cosmos/src/operations/list_users.rs +++ b/sdk/data_cosmos/src/operations/list_users.rs @@ -1,7 +1,6 @@ use crate::{ headers::from_headers::{activity_id_from_headers, request_charge_from_headers}, prelude::*, - resources::User, }; use azure_core::{ headers::{continuation_token_from_headers_optional, session_token_from_headers}, diff --git a/sdk/data_cosmos/src/operations/patch_document.rs b/sdk/data_cosmos/src/operations/patch_document.rs index 2356123617..6e7967e707 100644 --- a/sdk/data_cosmos/src/operations/patch_document.rs +++ b/sdk/data_cosmos/src/operations/patch_document.rs @@ -1,6 +1,4 @@ -use crate::{ - headers::from_headers::*, prelude::*, resources::document::DocumentAttributes, ResourceQuota, -}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{headers::session_token_from_headers, Response as HttpResponse, SessionToken}; use serde::Serialize; use serde_json::Value; diff --git a/sdk/data_cosmos/src/operations/query_documents.rs b/sdk/data_cosmos/src/operations/query_documents.rs index 36e41d55d8..1c7bf02585 100644 --- a/sdk/data_cosmos/src/operations/query_documents.rs +++ b/sdk/data_cosmos/src/operations/query_documents.rs @@ -1,9 +1,4 @@ -use crate::{ - headers::from_headers::*, - prelude::*, - resources::{document::Query, ResourceType}, - ResourceQuota, -}; +use crate::{headers::from_headers::*, prelude::*, ResourceQuota}; use azure_core::{ from_json, headers, headers::{ diff --git a/sdk/data_cosmos/src/operations/replace_document.rs b/sdk/data_cosmos/src/operations/replace_document.rs index 207372d11b..63957dace9 100644 --- a/sdk/data_cosmos/src/operations/replace_document.rs +++ b/sdk/data_cosmos/src/operations/replace_document.rs @@ -2,7 +2,6 @@ use crate::{ cosmos_entity::{add_as_partition_key_header_serialized, serialize_partition_key}, headers::from_headers::*, prelude::*, - resources::document::DocumentAttributes, ResourceQuota, }; use azure_core::{ diff --git a/sdk/data_cosmos/src/operations/replace_stored_procedure.rs b/sdk/data_cosmos/src/operations/replace_stored_procedure.rs index 0bf704e5d7..1a12dcf306 100644 --- a/sdk/data_cosmos/src/operations/replace_stored_procedure.rs +++ b/sdk/data_cosmos/src/operations/replace_stored_procedure.rs @@ -1,4 +1,3 @@ -use super::CreateStoredProcedureResponse; use crate::prelude::*; operation! { diff --git a/sdk/data_cosmos/src/resources/document/query.rs b/sdk/data_cosmos/src/resources/document/query.rs index 36549c2a1d..37cdcdc5d9 100644 --- a/sdk/data_cosmos/src/resources/document/query.rs +++ b/sdk/data_cosmos/src/resources/document/query.rs @@ -70,7 +70,6 @@ impl Param { #[cfg(test)] mod tests { use super::*; - use serde_json; #[test] fn tst_query() -> azure_core::Result<()> { diff --git a/sdk/data_cosmos/src/resources/permission/permission_token.rs b/sdk/data_cosmos/src/resources/permission/permission_token.rs index 0cb1766b63..1b9b8f4f19 100644 --- a/sdk/data_cosmos/src/resources/permission/permission_token.rs +++ b/sdk/data_cosmos/src/resources/permission/permission_token.rs @@ -178,7 +178,6 @@ pub enum PermissionTokenParseError { #[cfg(test)] mod tests { use super::*; - use std::convert::TryInto; const PERMISSION: &str = r#"type=resource&ver=1&sig=m32/00W65F8ADb3psljJ0g==;v0kQGihedau1pVGGQmuPgzlEcfsYDWSdfn2kyjDc1qF1aZfPHXzIS/BFMcuZQRUr6C5c5PgiyCSwhiAgZMJne2DorfMbE/GUHmxBLjOnykLARqwn3zpZpz9b2axWtL8+qQFX81nocdEDvBVzFuobyul6QimbmeZ7D6D1K4qJT9feuJkIBfczeAp/sKaSupXEgB3qyih0rej5N6Wv14Gufohh1QTlCRIzK3FqQv4xjcY={"#; diff --git a/sdk/data_tables/src/entity_with_metadata.rs b/sdk/data_tables/src/entity_with_metadata.rs index 08df3d9829..ea75853e04 100644 --- a/sdk/data_tables/src/entity_with_metadata.rs +++ b/sdk/data_tables/src/entity_with_metadata.rs @@ -1,7 +1,6 @@ use crate::EntityMetadata; use azure_core::CollectedResponse; use serde::de::DeserializeOwned; -use std::convert::TryFrom; #[derive(Debug, Clone)] pub struct EntityWithMetadata { diff --git a/sdk/data_tables/src/operations/create_table.rs b/sdk/data_tables/src/operations/create_table.rs index 2edb89f968..0bd3b2dcd8 100644 --- a/sdk/data_tables/src/operations/create_table.rs +++ b/sdk/data_tables/src/operations/create_table.rs @@ -2,7 +2,6 @@ use crate::prelude::*; use azure_core::{headers::*, prelude::*, to_json, Method, Response}; use azure_storage::headers::CommonStorageResponseHeaders; use serde::Serialize; -use std::convert::TryInto; operation! { CreateTable, diff --git a/sdk/data_tables/src/operations/delete_entity.rs b/sdk/data_tables/src/operations/delete_entity.rs index 0a916f7d57..2cb44a5b61 100644 --- a/sdk/data_tables/src/operations/delete_entity.rs +++ b/sdk/data_tables/src/operations/delete_entity.rs @@ -1,7 +1,6 @@ -use crate::{prelude::*, IfMatchCondition}; +use crate::prelude::*; use azure_core::{error::Error, headers::Headers, Method, Response}; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::{TryFrom, TryInto}; operation! { DeleteEntity, diff --git a/sdk/data_tables/src/operations/delete_table.rs b/sdk/data_tables/src/operations/delete_table.rs index df379b8a66..b9cb65b8d6 100644 --- a/sdk/data_tables/src/operations/delete_table.rs +++ b/sdk/data_tables/src/operations/delete_table.rs @@ -5,7 +5,6 @@ use azure_core::{ Method, Response, }; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::{TryFrom, TryInto}; operation! { DeleteTable, diff --git a/sdk/data_tables/src/operations/get_entity.rs b/sdk/data_tables/src/operations/get_entity.rs index dabb7c8f57..2b51c9c4ce 100644 --- a/sdk/data_tables/src/operations/get_entity.rs +++ b/sdk/data_tables/src/operations/get_entity.rs @@ -2,7 +2,7 @@ use crate::prelude::*; use azure_core::{headers::*, AppendToUrlQuery, Context, Etag, Method, Response}; use azure_storage::headers::CommonStorageResponseHeaders; use serde::{de::DeserializeOwned, Deserialize, Serialize}; -use std::{convert::TryInto, marker::PhantomData}; +use std::marker::PhantomData; #[derive(Debug, Clone)] pub struct GetEntityBuilder { diff --git a/sdk/data_tables/src/operations/insert_entity.rs b/sdk/data_tables/src/operations/insert_entity.rs index 0c5c526ca2..fbd754e607 100644 --- a/sdk/data_tables/src/operations/insert_entity.rs +++ b/sdk/data_tables/src/operations/insert_entity.rs @@ -1,12 +1,6 @@ use crate::{operations::*, prelude::*}; -use azure_core::{ - error::{Error, ErrorKind}, - headers::*, - prelude::*, - Body, CollectedResponse, Context, Method, -}; -use serde::de::DeserializeOwned; -use std::{convert::TryInto, marker::PhantomData}; +use azure_core::{headers::*, prelude::*, Body, Method}; +use std::marker::PhantomData; #[derive(Debug, Clone)] pub struct InsertEntityBuilder { diff --git a/sdk/data_tables/src/operations/insert_or_replace_or_merge_entity.rs b/sdk/data_tables/src/operations/insert_or_replace_or_merge_entity.rs index 48df0146d4..cbf0367919 100644 --- a/sdk/data_tables/src/operations/insert_or_replace_or_merge_entity.rs +++ b/sdk/data_tables/src/operations/insert_or_replace_or_merge_entity.rs @@ -1,6 +1,5 @@ use crate::{operations::*, prelude::*}; -use azure_core::{headers::*, prelude::*, Body, CollectedResponse, Method}; -use std::convert::TryInto; +use azure_core::{headers::*, prelude::*, Body, Method}; operation! { InsertOrReplaceOrMergeEntity, diff --git a/sdk/data_tables/src/operations/list_tables.rs b/sdk/data_tables/src/operations/list_tables.rs index a225ba3ad8..d926d29ada 100644 --- a/sdk/data_tables/src/operations/list_tables.rs +++ b/sdk/data_tables/src/operations/list_tables.rs @@ -1,10 +1,7 @@ use crate::prelude::*; -use azure_core::{ - error::Error, headers::*, prelude::*, AppendToUrlQuery, CollectedResponse, Method, Pageable, -}; +use azure_core::{error::Error, headers::*, prelude::*, CollectedResponse, Method, Pageable}; use azure_storage::headers::CommonStorageResponseHeaders; use serde::{Deserialize, Serialize}; -use std::convert::{TryFrom, TryInto}; operation! { #[stream] diff --git a/sdk/data_tables/src/operations/mod.rs b/sdk/data_tables/src/operations/mod.rs index d35230dc2e..a597826721 100644 --- a/sdk/data_tables/src/operations/mod.rs +++ b/sdk/data_tables/src/operations/mod.rs @@ -27,7 +27,6 @@ use azure_core::{ }; use azure_storage::headers::CommonStorageResponseHeaders; use serde::de::DeserializeOwned; -use std::convert::{TryFrom, TryInto}; #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub(crate) enum InsertOperation { diff --git a/sdk/data_tables/src/operations/query_entity.rs b/sdk/data_tables/src/operations/query_entity.rs index cf8297e104..203fb900c6 100644 --- a/sdk/data_tables/src/operations/query_entity.rs +++ b/sdk/data_tables/src/operations/query_entity.rs @@ -3,11 +3,10 @@ use azure_core::{ error::{Error, ErrorKind}, headers::*, prelude::*, - AppendToUrlQuery, CollectedResponse, Method, Pageable, + CollectedResponse, Method, Pageable, }; use azure_storage::headers::CommonStorageResponseHeaders; use serde::{de::DeserializeOwned, Deserialize, Serialize}; -use std::convert::{TryFrom, TryInto}; operation! { #[stream] diff --git a/sdk/data_tables/src/operations/transaction.rs b/sdk/data_tables/src/operations/transaction.rs index f845d9b6c2..a19072907d 100644 --- a/sdk/data_tables/src/operations/transaction.rs +++ b/sdk/data_tables/src/operations/transaction.rs @@ -10,7 +10,6 @@ use azure_core::{ }; use azure_storage::headers::CommonStorageResponseHeaders; use serde::Serialize; -use std::convert::{TryFrom, TryInto}; use tracing::trace; operation! { diff --git a/sdk/data_tables/src/operations/update_or_merge_entity.rs b/sdk/data_tables/src/operations/update_or_merge_entity.rs index 6651a9e6a5..90cac1b865 100644 --- a/sdk/data_tables/src/operations/update_or_merge_entity.rs +++ b/sdk/data_tables/src/operations/update_or_merge_entity.rs @@ -1,6 +1,5 @@ use crate::{operations::*, prelude::*, IfMatchCondition}; -use azure_core::{headers::*, prelude::*, Body, CollectedResponse, Method}; -use std::convert::TryInto; +use azure_core::{headers::*, prelude::*, Body, Method}; operation! { UpdateOrMergeEntity, diff --git a/sdk/identity/src/token_credentials/azure_cli_credentials.rs b/sdk/identity/src/token_credentials/azure_cli_credentials.rs index 9316be10c8..5696fc7e60 100644 --- a/sdk/identity/src/token_credentials/azure_cli_credentials.rs +++ b/sdk/identity/src/token_credentials/azure_cli_credentials.rs @@ -13,7 +13,7 @@ use tracing::trace; #[cfg(feature = "old_azure_cli")] mod az_cli_date_format { use azure_core::error::{ErrorKind, ResultExt}; - use serde::{self, Deserialize, Deserializer}; + use serde::{Deserialize, Deserializer}; use time::format_description::FormatItem; use time::macros::format_description; #[cfg(not(unix))] diff --git a/sdk/identity/src/token_credentials/imds_managed_identity_credentials.rs b/sdk/identity/src/token_credentials/imds_managed_identity_credentials.rs index 2a3626d19d..e25a8369c0 100644 --- a/sdk/identity/src/token_credentials/imds_managed_identity_credentials.rs +++ b/sdk/identity/src/token_credentials/imds_managed_identity_credentials.rs @@ -180,7 +180,6 @@ struct MsiTokenResponse { #[cfg(test)] mod tests { use super::*; - use azure_core::from_json; use time::macros::datetime; #[derive(Debug, Deserialize)] diff --git a/sdk/messaging_eventgrid/src/event.rs b/sdk/messaging_eventgrid/src/event.rs index 1ec0880419..4743f56186 100644 --- a/sdk/messaging_eventgrid/src/event.rs +++ b/sdk/messaging_eventgrid/src/event.rs @@ -1,4 +1,4 @@ -use serde::{self, Serialize}; +use serde::Serialize; use time::OffsetDateTime; use uuid::Uuid; @@ -64,7 +64,7 @@ where mod tests { use super::*; use azure_core::to_json; - use serde::{self, Serialize}; + use serde::Serialize; use time::macros::datetime; #[derive(Serialize)] diff --git a/sdk/messaging_eventgrid/src/event_grid_request_builder.rs b/sdk/messaging_eventgrid/src/event_grid_request_builder.rs index 24c77041a3..9933f0bbe0 100644 --- a/sdk/messaging_eventgrid/src/event_grid_request_builder.rs +++ b/sdk/messaging_eventgrid/src/event_grid_request_builder.rs @@ -4,7 +4,6 @@ use http::{ request::Builder, Method, Request, }; -use std::convert::TryFrom; pub struct EventGridRequestBuilder { builder: Builder, diff --git a/sdk/security_keyvault/src/clients/keyvault_client.rs b/sdk/security_keyvault/src/clients/keyvault_client.rs index a702c165d7..71a59e81b1 100644 --- a/sdk/security_keyvault/src/clients/keyvault_client.rs +++ b/sdk/security_keyvault/src/clients/keyvault_client.rs @@ -5,7 +5,7 @@ use azure_core::{ error::{Error, ErrorKind}, headers::*, prelude::*, - Body, Context, Method, Pipeline, Request, Response, Url, + Body, Method, Pipeline, Request, Response, Url, }; use std::sync::Arc; use time::OffsetDateTime; diff --git a/sdk/storage/src/cloud_location.rs b/sdk/storage/src/cloud_location.rs index 8efac125a4..9d3d2d835e 100644 --- a/sdk/storage/src/cloud_location.rs +++ b/sdk/storage/src/cloud_location.rs @@ -1,6 +1,5 @@ use crate::clients::ServiceType; use azure_core::Url; -use std::convert::TryFrom; /// The cloud with which you want to interact. // TODO: Other govt clouds? diff --git a/sdk/storage/src/headers/mod.rs b/sdk/storage/src/headers/mod.rs index fdf361b324..f80084d48c 100644 --- a/sdk/storage/src/headers/mod.rs +++ b/sdk/storage/src/headers/mod.rs @@ -5,7 +5,6 @@ use azure_core::headers::{ server_from_headers, version_from_headers, HeaderName, Headers, CONTENT_MD5, }; use azure_core::RequestId; -use std::convert::TryFrom; use time::OffsetDateTime; #[derive(Debug, Clone)] diff --git a/sdk/storage/src/lib.rs b/sdk/storage/src/lib.rs index 2ff0015a3c..b508117ff3 100644 --- a/sdk/storage/src/lib.rs +++ b/sdk/storage/src/lib.rs @@ -62,7 +62,7 @@ mod consistency { }; use bytes::Bytes; use serde::{Deserialize, Deserializer}; - use std::{convert::TryInto, str::FromStr}; + use std::str::FromStr; #[derive(Debug, Clone, PartialEq, Eq)] pub struct ConsistencyCRC64(Bytes); diff --git a/sdk/storage_blobs/src/blob/mod.rs b/sdk/storage_blobs/src/blob/mod.rs index bcbdf5c4a8..1963286da4 100644 --- a/sdk/storage_blobs/src/blob/mod.rs +++ b/sdk/storage_blobs/src/blob/mod.rs @@ -25,7 +25,7 @@ use azure_core::{ Etag, LeaseDuration, LeaseState, LeaseStatus, }; use azure_storage::{ConsistencyCRC64, ConsistencyMD5, CopyId, CopyProgress}; -use serde::{self, Deserialize, Deserializer}; +use serde::{Deserialize, Deserializer}; use serde_json::Value; use std::collections::HashMap; use time::OffsetDateTime; diff --git a/sdk/storage_blobs/src/blob/operations/clear_page.rs b/sdk/storage_blobs/src/blob/operations/clear_page.rs index adefe3c636..407bed1e37 100644 --- a/sdk/storage_blobs/src/blob/operations/clear_page.rs +++ b/sdk/storage_blobs/src/blob/operations/clear_page.rs @@ -1,9 +1,5 @@ use crate::prelude::*; -use azure_core::{ - headers::{BLOB_TYPE, PAGE_WRITE, *}, - prelude::*, - RequestId, -}; +use azure_core::{headers::*, prelude::*, RequestId}; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_blobs/src/blob/operations/copy_blob.rs b/sdk/storage_blobs/src/blob/operations/copy_blob.rs index 432130b68b..ffe95a1ed9 100644 --- a/sdk/storage_blobs/src/blob/operations/copy_blob.rs +++ b/sdk/storage_blobs/src/blob/operations/copy_blob.rs @@ -4,7 +4,6 @@ use crate::{ }; use azure_core::{headers::*, prelude::*, RequestId, Url}; use azure_storage::{copy_id_from_headers, CopyId}; -use std::convert::{TryFrom, TryInto}; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_blobs/src/blob/operations/copy_blob_from_url.rs b/sdk/storage_blobs/src/blob/operations/copy_blob_from_url.rs index cb115e8867..760ebc9e93 100644 --- a/sdk/storage_blobs/src/blob/operations/copy_blob_from_url.rs +++ b/sdk/storage_blobs/src/blob/operations/copy_blob_from_url.rs @@ -6,7 +6,6 @@ use azure_core::{headers::*, prelude::*, RequestId, Url}; use azure_storage::{ copy_id_from_headers, headers::content_md5_from_headers_optional, ConsistencyMD5, CopyId, }; -use std::convert::{TryFrom, TryInto}; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_blobs/src/blob/operations/get_blob.rs b/sdk/storage_blobs/src/blob/operations/get_blob.rs index f74652ea8e..af43695c02 100644 --- a/sdk/storage_blobs/src/blob/operations/get_blob.rs +++ b/sdk/storage_blobs/src/blob/operations/get_blob.rs @@ -1,4 +1,4 @@ -use crate::{blob::Blob, prelude::*}; +use crate::prelude::*; use azure_core::{ error::Error, headers::*, prelude::*, Pageable, RequestId, Response as AzureResponse, ResponseBody, diff --git a/sdk/storage_blobs/src/blob/operations/get_block_list.rs b/sdk/storage_blobs/src/blob/operations/get_block_list.rs index 0b246cd56e..a05ec4097a 100644 --- a/sdk/storage_blobs/src/blob/operations/get_block_list.rs +++ b/sdk/storage_blobs/src/blob/operations/get_block_list.rs @@ -1,7 +1,4 @@ -use crate::{ - blob::{BlockListType, BlockWithSizeList}, - prelude::*, -}; +use crate::{blob::BlockWithSizeList, prelude::*}; use azure_core::{headers::*, prelude::*, RequestId}; use std::str::from_utf8; use time::OffsetDateTime; diff --git a/sdk/storage_blobs/src/blob/operations/get_metadata.rs b/sdk/storage_blobs/src/blob/operations/get_metadata.rs index eea784a314..825bfbec7d 100644 --- a/sdk/storage_blobs/src/blob/operations/get_metadata.rs +++ b/sdk/storage_blobs/src/blob/operations/get_metadata.rs @@ -1,6 +1,5 @@ use crate::prelude::*; use azure_core::{headers::*, prelude::*, Method, RequestId}; -use std::convert::{TryFrom, TryInto}; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_blobs/src/blob/operations/get_properties.rs b/sdk/storage_blobs/src/blob/operations/get_properties.rs index 8d5627fac6..1d238f2329 100644 --- a/sdk/storage_blobs/src/blob/operations/get_properties.rs +++ b/sdk/storage_blobs/src/blob/operations/get_properties.rs @@ -1,4 +1,4 @@ -use crate::{blob::Blob, prelude::*}; +use crate::prelude::*; use azure_core::{headers::*, prelude::*, RequestId}; use time::OffsetDateTime; diff --git a/sdk/storage_blobs/src/blob/operations/set_blob_tier.rs b/sdk/storage_blobs/src/blob/operations/set_blob_tier.rs index 30858e8eb0..2180600d65 100644 --- a/sdk/storage_blobs/src/blob/operations/set_blob_tier.rs +++ b/sdk/storage_blobs/src/blob/operations/set_blob_tier.rs @@ -1,6 +1,5 @@ use crate::prelude::*; use azure_core::{headers::*, prelude::*, RequestId}; -use std::convert::{TryFrom, TryInto}; operation! { SetBlobTier, diff --git a/sdk/storage_blobs/src/blob/operations/set_expiry.rs b/sdk/storage_blobs/src/blob/operations/set_expiry.rs index 2086f62df5..7c35599988 100644 --- a/sdk/storage_blobs/src/blob/operations/set_expiry.rs +++ b/sdk/storage_blobs/src/blob/operations/set_expiry.rs @@ -1,6 +1,5 @@ use crate::prelude::*; use azure_core::{headers::*, prelude::*, RequestId, Response}; -use std::convert::{TryFrom, TryInto}; operation! { SetBlobExpiry, diff --git a/sdk/storage_blobs/src/blob/operations/set_metadata.rs b/sdk/storage_blobs/src/blob/operations/set_metadata.rs index c61c5f7b44..3c707b9262 100644 --- a/sdk/storage_blobs/src/blob/operations/set_metadata.rs +++ b/sdk/storage_blobs/src/blob/operations/set_metadata.rs @@ -1,6 +1,5 @@ use crate::prelude::*; use azure_core::{headers::*, prelude::*, Method, RequestId}; -use std::convert::{TryFrom, TryInto}; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_blobs/src/blob/operations/set_properties.rs b/sdk/storage_blobs/src/blob/operations/set_properties.rs index 630d4a381d..2e1e1f351f 100644 --- a/sdk/storage_blobs/src/blob/operations/set_properties.rs +++ b/sdk/storage_blobs/src/blob/operations/set_properties.rs @@ -6,7 +6,6 @@ use azure_core::{ }, Method, RequestId, }; -use std::convert::{TryFrom, TryInto}; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_blobs/src/blob/operations/set_tags.rs b/sdk/storage_blobs/src/blob/operations/set_tags.rs index 789ddca1dd..f9dfc58278 100644 --- a/sdk/storage_blobs/src/blob/operations/set_tags.rs +++ b/sdk/storage_blobs/src/blob/operations/set_tags.rs @@ -4,7 +4,6 @@ use azure_core::{ headers::{date_from_headers, request_id_from_headers, Headers}, Method, RequestId, }; -use std::convert::{TryFrom, TryInto}; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_blobs/src/clients/blob_client.rs b/sdk/storage_blobs/src/clients/blob_client.rs index e2b889d205..834d39231f 100644 --- a/sdk/storage_blobs/src/clients/blob_client.rs +++ b/sdk/storage_blobs/src/clients/blob_client.rs @@ -1,8 +1,4 @@ -use crate::{ - blob::operations::*, - options::{BA512Range, Snapshot, Tags}, - prelude::*, -}; +use crate::{blob::operations::*, prelude::*}; use azure_core::{ error::{Error, ErrorKind}, headers::Headers, @@ -11,10 +7,7 @@ use azure_core::{ }; use azure_storage::{ prelude::*, - shared_access_signature::{ - service_sas::{BlobSharedAccessSignature, BlobSignedResource, UserDeligationKey}, - SasToken, - }, + shared_access_signature::service_sas::{BlobSharedAccessSignature, UserDeligationKey}, StorageCredentialsInner, }; use futures::StreamExt; diff --git a/sdk/storage_blobs/src/clients/blob_lease_client.rs b/sdk/storage_blobs/src/clients/blob_lease_client.rs index 6e4521e031..8659a4ff2b 100644 --- a/sdk/storage_blobs/src/clients/blob_lease_client.rs +++ b/sdk/storage_blobs/src/clients/blob_lease_client.rs @@ -1,5 +1,5 @@ use crate::{blob::operations::*, prelude::*}; -use azure_core::{headers::Headers, prelude::*, Body, Context, Method, Request, Response, Url}; +use azure_core::{headers::Headers, prelude::*, Body, Method, Request, Response, Url}; #[derive(Debug, Clone)] pub struct BlobLeaseClient { diff --git a/sdk/storage_blobs/src/clients/blob_service_client.rs b/sdk/storage_blobs/src/clients/blob_service_client.rs index a53f471873..ffa5d246e1 100644 --- a/sdk/storage_blobs/src/clients/blob_service_client.rs +++ b/sdk/storage_blobs/src/clients/blob_service_client.rs @@ -267,7 +267,7 @@ impl BlobServiceClient { #[cfg(test)] mod tests { use super::*; - use azure_storage::{StorageCredentials, StorageCredentialsInner}; + use azure_storage::StorageCredentialsInner; use std::ops::Deref; #[tokio::test] diff --git a/sdk/storage_blobs/src/clients/container_client.rs b/sdk/storage_blobs/src/clients/container_client.rs index 155c314a22..5ab3c8fbc2 100644 --- a/sdk/storage_blobs/src/clients/container_client.rs +++ b/sdk/storage_blobs/src/clients/container_client.rs @@ -216,7 +216,6 @@ impl ContainerClient { #[cfg(feature = "test_integration")] mod integration_tests { use super::*; - use crate::clients::ClientBuilder; use futures::StreamExt; fn get_emulator_client(container_name: &str) -> ContainerClient { diff --git a/sdk/storage_blobs/src/clients/container_lease_client.rs b/sdk/storage_blobs/src/clients/container_lease_client.rs index f51a807d65..a70e21e92b 100644 --- a/sdk/storage_blobs/src/clients/container_lease_client.rs +++ b/sdk/storage_blobs/src/clients/container_lease_client.rs @@ -1,5 +1,5 @@ use crate::{container::operations::*, prelude::*}; -use azure_core::{headers::Headers, prelude::*, Body, Context, Method, Request, Response, Url}; +use azure_core::{headers::Headers, prelude::*, Body, Method, Request, Response, Url}; #[derive(Debug, Clone)] pub struct ContainerLeaseClient { diff --git a/sdk/storage_blobs/src/container/operations/create.rs b/sdk/storage_blobs/src/container/operations/create.rs index e73fd69010..82a000ae40 100644 --- a/sdk/storage_blobs/src/container/operations/create.rs +++ b/sdk/storage_blobs/src/container/operations/create.rs @@ -1,4 +1,4 @@ -use crate::{container::PublicAccess, prelude::*}; +use crate::prelude::*; use azure_core::Method; use azure_core::{headers::AsHeaders, headers::Headers, prelude::*}; diff --git a/sdk/storage_blobs/src/container/operations/get_acl.rs b/sdk/storage_blobs/src/container/operations/get_acl.rs index 2282dbed52..eceb2802b8 100644 --- a/sdk/storage_blobs/src/container/operations/get_acl.rs +++ b/sdk/storage_blobs/src/container/operations/get_acl.rs @@ -1,9 +1,5 @@ -use crate::{ - container::{public_access_from_header, PublicAccess}, - prelude::*, -}; +use crate::{container::public_access_from_header, prelude::*}; use azure_core::{date, headers::*, prelude::*, Method, RequestId, Response}; -use azure_storage::StoredAccessPolicyList; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_blobs/src/container/operations/get_properties.rs b/sdk/storage_blobs/src/container/operations/get_properties.rs index 7164a2ec5f..cbc7478c8a 100644 --- a/sdk/storage_blobs/src/container/operations/get_properties.rs +++ b/sdk/storage_blobs/src/container/operations/get_properties.rs @@ -5,7 +5,6 @@ use azure_core::{ prelude::*, RequestId, }; -use std::convert::{TryFrom, TryInto}; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_blobs/src/container/operations/list_blobs.rs b/sdk/storage_blobs/src/container/operations/list_blobs.rs index 98308d4baa..40488ca76f 100644 --- a/sdk/storage_blobs/src/container/operations/list_blobs.rs +++ b/sdk/storage_blobs/src/container/operations/list_blobs.rs @@ -1,4 +1,4 @@ -use crate::{blob::Blob, prelude::*}; +use crate::prelude::*; use azure_core::{ error::Error, headers::{date_from_headers, request_id_from_headers, Headers}, @@ -366,7 +366,7 @@ mod tests { available true file - notRealValue + notRealValue diff --git a/sdk/storage_blobs/src/container/operations/set_acl.rs b/sdk/storage_blobs/src/container/operations/set_acl.rs index 67839a7a6b..1013596b6e 100644 --- a/sdk/storage_blobs/src/container/operations/set_acl.rs +++ b/sdk/storage_blobs/src/container/operations/set_acl.rs @@ -1,6 +1,5 @@ use crate::{container::public_access_from_header, prelude::*}; use azure_core::{headers::*, prelude::*, Body, Method}; -use azure_storage::StoredAccessPolicyList; operation! { SetACL, diff --git a/sdk/storage_blobs/src/options/ba512_range.rs b/sdk/storage_blobs/src/options/ba512_range.rs index 044a81cdd3..b0025a1bb3 100644 --- a/sdk/storage_blobs/src/options/ba512_range.rs +++ b/sdk/storage_blobs/src/options/ba512_range.rs @@ -3,7 +3,7 @@ use azure_core::{ headers::{self, Header}, prelude::Range, }; -use std::{convert::TryFrom, fmt, str::FromStr}; +use std::{fmt, str::FromStr}; /// A 512 byte aligned byte range /// @@ -118,7 +118,6 @@ impl<'a> From<&'a BA512Range> for Range { #[cfg(test)] mod test { use super::*; - use azure_core::error::ErrorKind; #[test] fn test_512range_parse() { diff --git a/sdk/storage_blobs/src/options/tags.rs b/sdk/storage_blobs/src/options/tags.rs index 2ec0017c6f..0bbcf7f43f 100644 --- a/sdk/storage_blobs/src/options/tags.rs +++ b/sdk/storage_blobs/src/options/tags.rs @@ -4,11 +4,7 @@ use azure_core::{ xml::to_xml, }; use bytes::{Bytes, BytesMut}; -use std::{ - collections::HashMap, - iter::{Extend, IntoIterator}, - str::FromStr, -}; +use std::{collections::HashMap, str::FromStr}; use url::form_urlencoded; #[derive(Debug, Clone, PartialEq, Eq, Deserialize, Default, Serialize)] diff --git a/sdk/storage_datalake/src/file_system.rs b/sdk/storage_datalake/src/file_system.rs index 9c04dcd2c9..127b10f1b3 100644 --- a/sdk/storage_datalake/src/file_system.rs +++ b/sdk/storage_datalake/src/file_system.rs @@ -1,7 +1,6 @@ use azure_core::{from_json, Etag}; use bytes::Bytes; -use serde::{self, Deserialize, Deserializer}; -use std::convert::TryFrom; +use serde::{Deserialize, Deserializer}; use time::OffsetDateTime; #[derive(Debug, Clone, Serialize, Deserialize)] diff --git a/sdk/storage_datalake/src/operations/file_system_create.rs b/sdk/storage_datalake/src/operations/file_system_create.rs index 7412414ae0..10787cb4e7 100644 --- a/sdk/storage_datalake/src/operations/file_system_create.rs +++ b/sdk/storage_datalake/src/operations/file_system_create.rs @@ -5,7 +5,6 @@ use azure_core::{ Etag, Request, Response, }; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_datalake/src/operations/file_system_delete.rs b/sdk/storage_datalake/src/operations/file_system_delete.rs index 178cbcb141..eaeb38cebe 100644 --- a/sdk/storage_datalake/src/operations/file_system_delete.rs +++ b/sdk/storage_datalake/src/operations/file_system_delete.rs @@ -1,7 +1,6 @@ use crate::clients::FileSystemClient; use azure_core::{prelude::*, Request, Response}; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; operation! { DeleteFileSystem, diff --git a/sdk/storage_datalake/src/operations/file_system_get_properties.rs b/sdk/storage_datalake/src/operations/file_system_get_properties.rs index 528c4d1185..9fad95873b 100644 --- a/sdk/storage_datalake/src/operations/file_system_get_properties.rs +++ b/sdk/storage_datalake/src/operations/file_system_get_properties.rs @@ -5,7 +5,6 @@ use azure_core::{ Etag, Request, Response, }; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_datalake/src/operations/file_system_set_properties.rs b/sdk/storage_datalake/src/operations/file_system_set_properties.rs index b3b3ffee86..b1116ac32a 100644 --- a/sdk/storage_datalake/src/operations/file_system_set_properties.rs +++ b/sdk/storage_datalake/src/operations/file_system_set_properties.rs @@ -5,7 +5,6 @@ use azure_core::{ Etag, Request, Response as HttpResponse, }; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_datalake/src/operations/file_systems_list.rs b/sdk/storage_datalake/src/operations/file_systems_list.rs index 3f7ad1b3e1..69ee6db45e 100644 --- a/sdk/storage_datalake/src/operations/file_systems_list.rs +++ b/sdk/storage_datalake/src/operations/file_systems_list.rs @@ -1,9 +1,8 @@ use crate::clients::DataLakeClient; use crate::file_system::{FileSystem, FileSystemList}; +use azure_core::Request; use azure_core::{error::Error, prelude::*, Pageable, Response}; -use azure_core::{AppendToUrlQuery, Request}; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; type ListFileSystems = Pageable; diff --git a/sdk/storage_datalake/src/operations/path_delete.rs b/sdk/storage_datalake/src/operations/path_delete.rs index 5d030cd6c2..e35dfae899 100644 --- a/sdk/storage_datalake/src/operations/path_delete.rs +++ b/sdk/storage_datalake/src/operations/path_delete.rs @@ -1,9 +1,8 @@ use crate::clients::PathClient; use crate::request_options::*; +use azure_core::Response as HttpResponse; use azure_core::{prelude::*, Pageable, Request}; -use azure_core::{AppendToUrlQuery, Response as HttpResponse}; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; operation! { DeletePath, diff --git a/sdk/storage_datalake/src/operations/path_get.rs b/sdk/storage_datalake/src/operations/path_get.rs index f1c515eb67..6cafd87f96 100644 --- a/sdk/storage_datalake/src/operations/path_get.rs +++ b/sdk/storage_datalake/src/operations/path_get.rs @@ -6,7 +6,6 @@ use azure_core::{ }; use azure_storage::headers::CommonStorageResponseHeaders; use bytes::Bytes; -use std::convert::TryInto; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_datalake/src/operations/path_head.rs b/sdk/storage_datalake/src/operations/path_head.rs index 9440af1e44..5c622df01f 100644 --- a/sdk/storage_datalake/src/operations/path_head.rs +++ b/sdk/storage_datalake/src/operations/path_head.rs @@ -1,9 +1,8 @@ use crate::{clients::PathClient, request_options::*, Properties}; use azure_core::headers::{self, etag_from_headers, last_modified_from_headers}; +use azure_core::Response as HttpResponse; use azure_core::{prelude::*, Request}; -use azure_core::{AppendToUrlQuery, Response as HttpResponse}; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_datalake/src/operations/path_list.rs b/sdk/storage_datalake/src/operations/path_list.rs index a3a99d22d0..96a49acbaf 100644 --- a/sdk/storage_datalake/src/operations/path_list.rs +++ b/sdk/storage_datalake/src/operations/path_list.rs @@ -3,9 +3,8 @@ use crate::{ file_system::{Path, PathList}, request_options::*, }; -use azure_core::{error::Error, prelude::*, AppendToUrlQuery, Pageable, Request, Response}; +use azure_core::{error::Error, prelude::*, Pageable, Request, Response}; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; operation! { #[stream] diff --git a/sdk/storage_datalake/src/operations/path_patch.rs b/sdk/storage_datalake/src/operations/path_patch.rs index 64030f7de0..513bce04b9 100644 --- a/sdk/storage_datalake/src/operations/path_patch.rs +++ b/sdk/storage_datalake/src/operations/path_patch.rs @@ -4,10 +4,9 @@ use crate::Properties; use azure_core::headers::{etag_from_headers, last_modified_from_headers}; use azure_core::prelude::*; use azure_core::Request; -use azure_core::{AppendToUrlQuery, Response as HttpResponse}; +use azure_core::Response as HttpResponse; use azure_storage::headers::CommonStorageResponseHeaders; use bytes::Bytes; -use std::convert::TryInto; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_datalake/src/operations/path_put.rs b/sdk/storage_datalake/src/operations/path_put.rs index 009a559462..43be470851 100644 --- a/sdk/storage_datalake/src/operations/path_put.rs +++ b/sdk/storage_datalake/src/operations/path_put.rs @@ -2,10 +2,9 @@ use crate::{clients::PathClient, request_options::*, Properties}; use azure_core::{ headers::{etag_from_headers, last_modified_from_headers}, prelude::*, - AppendToUrlQuery, Request, Response, + Request, Response, }; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_datalake/src/operations/path_rename.rs b/sdk/storage_datalake/src/operations/path_rename.rs index 7161403643..8de1ddc980 100644 --- a/sdk/storage_datalake/src/operations/path_rename.rs +++ b/sdk/storage_datalake/src/operations/path_rename.rs @@ -1,5 +1,5 @@ use crate::{clients::PathClient, request_options::*, Properties}; -use azure_core::{prelude::*, AppendToUrlQuery, Request}; +use azure_core::{prelude::*, Request}; operation! { RenamePath, diff --git a/sdk/storage_datalake/src/properties.rs b/sdk/storage_datalake/src/properties.rs index 48ce69f5fb..e09ea58d9b 100644 --- a/sdk/storage_datalake/src/properties.rs +++ b/sdk/storage_datalake/src/properties.rs @@ -5,7 +5,6 @@ use azure_core::{ }; use std::borrow::Cow; use std::collections::BTreeMap; -use std::convert::TryFrom; use std::str::FromStr; #[derive(Debug, Clone, PartialEq, Eq)] diff --git a/sdk/storage_queues/src/clients/queue_client.rs b/sdk/storage_queues/src/clients/queue_client.rs index cb13ac0128..7fe60210c6 100644 --- a/sdk/storage_queues/src/clients/queue_client.rs +++ b/sdk/storage_queues/src/clients/queue_client.rs @@ -1,7 +1,7 @@ use crate::{ operations::*, PopReceipt, PopReceiptClient, QueueServiceClient, QueueStoredAccessPolicy, }; -use azure_core::{prelude::*, Context, Request, Response, Url}; +use azure_core::{prelude::*, Request, Response, Url}; use std::fmt::Debug; #[derive(Debug, Clone)] diff --git a/sdk/storage_queues/src/operations/clear_messages.rs b/sdk/storage_queues/src/operations/clear_messages.rs index db971f3c22..e67938f948 100644 --- a/sdk/storage_queues/src/operations/clear_messages.rs +++ b/sdk/storage_queues/src/operations/clear_messages.rs @@ -1,6 +1,5 @@ use azure_core::{error::Error, headers::Headers, Method, Response as AzureResponse}; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; use crate::QueueClient; diff --git a/sdk/storage_queues/src/operations/create_queue.rs b/sdk/storage_queues/src/operations/create_queue.rs index fca22b3611..50d7bb4a76 100644 --- a/sdk/storage_queues/src/operations/create_queue.rs +++ b/sdk/storage_queues/src/operations/create_queue.rs @@ -1,7 +1,6 @@ use crate::clients::QueueClient; use azure_core::{error::Error, headers::Headers, prelude::*, Method, Response as AzureResponse}; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; operation! { CreateQueue, diff --git a/sdk/storage_queues/src/operations/delete_message.rs b/sdk/storage_queues/src/operations/delete_message.rs index cf8418e9bd..aa5026285a 100644 --- a/sdk/storage_queues/src/operations/delete_message.rs +++ b/sdk/storage_queues/src/operations/delete_message.rs @@ -1,7 +1,6 @@ use crate::clients::PopReceiptClient; use azure_core::{error::Error, headers::Headers, Method, Response as AzureResponse}; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; operation! { DeleteMessage, diff --git a/sdk/storage_queues/src/operations/delete_queue.rs b/sdk/storage_queues/src/operations/delete_queue.rs index bff8aa874e..f0684da6d2 100644 --- a/sdk/storage_queues/src/operations/delete_queue.rs +++ b/sdk/storage_queues/src/operations/delete_queue.rs @@ -1,7 +1,6 @@ use crate::clients::QueueClient; use azure_core::{error::Error, headers::Headers, Method, Response as AzureResponse}; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; operation! { DeleteQueue, diff --git a/sdk/storage_queues/src/operations/get_messages.rs b/sdk/storage_queues/src/operations/get_messages.rs index a4f6ccfb1a..4b1cbefc6b 100644 --- a/sdk/storage_queues/src/operations/get_messages.rs +++ b/sdk/storage_queues/src/operations/get_messages.rs @@ -1,8 +1,7 @@ -use crate::{prelude::*, PopReceipt}; +use crate::prelude::*; use azure_core::{headers::Headers, prelude::*, xml::read_xml, Method, Response as AzureResponse}; use azure_storage::headers::CommonStorageResponseHeaders; use serde::Deserialize; -use std::convert::TryInto; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_queues/src/operations/get_queue_acl.rs b/sdk/storage_queues/src/operations/get_queue_acl.rs index 8e8f35be9f..b47e88ee33 100644 --- a/sdk/storage_queues/src/operations/get_queue_acl.rs +++ b/sdk/storage_queues/src/operations/get_queue_acl.rs @@ -1,7 +1,6 @@ use crate::{clients::QueueClient, QueueStoredAccessPolicy}; use azure_core::{headers::Headers, Method, Response as AzureResponse}; use azure_storage::{headers::CommonStorageResponseHeaders, StoredAccessPolicyList}; -use std::convert::TryInto; operation! { GetQueueACL, diff --git a/sdk/storage_queues/src/operations/get_queue_metadata.rs b/sdk/storage_queues/src/operations/get_queue_metadata.rs index b580cfd8c3..eff5da02a9 100644 --- a/sdk/storage_queues/src/operations/get_queue_metadata.rs +++ b/sdk/storage_queues/src/operations/get_queue_metadata.rs @@ -6,7 +6,6 @@ use azure_core::{ Method, Response as AzureResponse, }; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; operation! { GetQueueMetadata, diff --git a/sdk/storage_queues/src/operations/get_queue_service_properties.rs b/sdk/storage_queues/src/operations/get_queue_service_properties.rs index 3edcd35135..3c7aabe64f 100644 --- a/sdk/storage_queues/src/operations/get_queue_service_properties.rs +++ b/sdk/storage_queues/src/operations/get_queue_service_properties.rs @@ -1,7 +1,6 @@ use crate::{QueueServiceClient, QueueServiceProperties}; use azure_core::{headers::Headers, Method, Response as AzureResponse}; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; operation! { GetQueueServiceProperties, diff --git a/sdk/storage_queues/src/operations/get_queue_service_stats.rs b/sdk/storage_queues/src/operations/get_queue_service_stats.rs index e1c1b04f37..53c4d0b45c 100644 --- a/sdk/storage_queues/src/operations/get_queue_service_stats.rs +++ b/sdk/storage_queues/src/operations/get_queue_service_stats.rs @@ -7,7 +7,6 @@ use azure_core::{ }; use azure_storage::headers::CommonStorageResponseHeaders; use serde::Deserialize; -use std::convert::TryInto; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_queues/src/operations/list_queues.rs b/sdk/storage_queues/src/operations/list_queues.rs index f32e57b373..c36b9ccd08 100644 --- a/sdk/storage_queues/src/operations/list_queues.rs +++ b/sdk/storage_queues/src/operations/list_queues.rs @@ -4,7 +4,6 @@ use azure_core::{ }; use azure_storage::headers::CommonStorageResponseHeaders; use serde::{Deserialize, Serialize}; -use std::convert::TryInto; operation! { #[stream] diff --git a/sdk/storage_queues/src/operations/peek_messages.rs b/sdk/storage_queues/src/operations/peek_messages.rs index 7c93f93446..531d9b73fb 100644 --- a/sdk/storage_queues/src/operations/peek_messages.rs +++ b/sdk/storage_queues/src/operations/peek_messages.rs @@ -2,7 +2,6 @@ use crate::prelude::*; use azure_core::{headers::Headers, prelude::*, Method, Response as AzureResponse}; use azure_storage::headers::CommonStorageResponseHeaders; use serde::{Deserialize, Serialize}; -use std::convert::TryInto; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_queues/src/operations/put_message.rs b/sdk/storage_queues/src/operations/put_message.rs index 0d00cdc7f2..0f47788d29 100644 --- a/sdk/storage_queues/src/operations/put_message.rs +++ b/sdk/storage_queues/src/operations/put_message.rs @@ -4,7 +4,6 @@ use azure_core::{ }; use azure_storage::headers::CommonStorageResponseHeaders; use serde::{Deserialize, Serialize}; -use std::convert::TryInto; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_queues/src/operations/set_queue_acl.rs b/sdk/storage_queues/src/operations/set_queue_acl.rs index ced51bbdd2..927e28dd42 100644 --- a/sdk/storage_queues/src/operations/set_queue_acl.rs +++ b/sdk/storage_queues/src/operations/set_queue_acl.rs @@ -1,7 +1,6 @@ use crate::{clients::QueueClient, QueueStoredAccessPolicy}; use azure_core::{error::Error, headers::Headers, Method, Response as AzureResponse}; use azure_storage::{headers::CommonStorageResponseHeaders, StoredAccessPolicyList}; -use std::convert::TryInto; operation! { SetQueueACL, diff --git a/sdk/storage_queues/src/operations/set_queue_metadata.rs b/sdk/storage_queues/src/operations/set_queue_metadata.rs index d162d2672c..334677341e 100644 --- a/sdk/storage_queues/src/operations/set_queue_metadata.rs +++ b/sdk/storage_queues/src/operations/set_queue_metadata.rs @@ -1,7 +1,6 @@ use crate::clients::QueueClient; use azure_core::{error::Error, headers::Headers, prelude::*, Method, Response as AzureResponse}; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; operation! { SetQueueMetadata, diff --git a/sdk/storage_queues/src/operations/set_queue_service_properties.rs b/sdk/storage_queues/src/operations/set_queue_service_properties.rs index 3be5a92db2..8e5eb89425 100644 --- a/sdk/storage_queues/src/operations/set_queue_service_properties.rs +++ b/sdk/storage_queues/src/operations/set_queue_service_properties.rs @@ -3,7 +3,6 @@ use azure_core::{ error::Error, headers::Headers, xml::to_xml_with_root, Method, Response as AzureResponse, }; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; operation! { SetQueueServiceProperties, diff --git a/sdk/storage_queues/src/operations/update_message.rs b/sdk/storage_queues/src/operations/update_message.rs index 52ed889386..59a037eef1 100644 --- a/sdk/storage_queues/src/operations/update_message.rs +++ b/sdk/storage_queues/src/operations/update_message.rs @@ -8,7 +8,6 @@ use azure_core::{ Method, Response as AzureResponse, }; use azure_storage::headers::CommonStorageResponseHeaders; -use std::convert::TryInto; use time::OffsetDateTime; operation! { diff --git a/sdk/storage_queues/src/queue_stored_access_policy.rs b/sdk/storage_queues/src/queue_stored_access_policy.rs index 0a9e12d213..8670b2113e 100644 --- a/sdk/storage_queues/src/queue_stored_access_policy.rs +++ b/sdk/storage_queues/src/queue_stored_access_policy.rs @@ -1,6 +1,5 @@ use azure_core::error::{Error, ErrorKind}; use azure_storage::StoredAccessPolicy; -use std::convert::TryFrom; use time::OffsetDateTime; #[allow(clippy::struct_excessive_bools)]