From 32a9040355bfda0a56462e8ccaa63e0fcde378d7 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Wed, 23 Mar 2022 16:23:32 -0400 Subject: [PATCH 1/4] bump edition to 2021 --- sdk/core/Cargo.toml | 2 +- sdk/data_cosmos/Cargo.toml | 2 +- sdk/data_tables/Cargo.toml | 2 +- sdk/identity/Cargo.toml | 2 +- sdk/iot_hub/Cargo.toml | 2 +- sdk/messaging_eventgrid/Cargo.toml | 2 +- sdk/messaging_servicebus/Cargo.toml | 2 +- sdk/rustfmt.toml | 2 +- sdk/security_keyvault/Cargo.toml | 2 +- sdk/storage/Cargo.toml | 2 +- sdk/storage_blobs/Cargo.toml | 2 +- sdk/storage_datalake/Cargo.toml | 2 +- sdk/storage_queues/Cargo.toml | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/sdk/core/Cargo.toml b/sdk/core/Cargo.toml index bfc766dd3e..575bfd72a4 100644 --- a/sdk/core/Cargo.toml +++ b/sdk/core/Cargo.toml @@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust" documentation = "https://docs.rs/azure_core" keywords = ["sdk", "azure", "rest", "iot", "cloud"] categories = ["api-bindings"] -edition = "2018" +edition = "2021" [dependencies] async-trait = "0.1" diff --git a/sdk/data_cosmos/Cargo.toml b/sdk/data_cosmos/Cargo.toml index 08bb6d1f07..192dd531fe 100644 --- a/sdk/data_cosmos/Cargo.toml +++ b/sdk/data_cosmos/Cargo.toml @@ -12,7 +12,7 @@ documentation = "https://docs.rs/azure_data_cosmos" keywords = ["sdk", "azure", "rest", "iot", "cloud"] categories = ["api-bindings"] -edition = "2018" +edition = "2021" [dependencies] async-trait = "0.1" diff --git a/sdk/data_tables/Cargo.toml b/sdk/data_tables/Cargo.toml index fc77130473..1576b0eaa7 100644 --- a/sdk/data_tables/Cargo.toml +++ b/sdk/data_tables/Cargo.toml @@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust" documentation = "https://docs.rs/azure_data_tables" keywords = ["sdk", "azure", "storage", "data-tables"] categories = ["api-bindings"] -edition = "2018" +edition = "2021" [dependencies] azure_core = { path = "../core", version = "0.1", default-features=false} diff --git a/sdk/identity/Cargo.toml b/sdk/identity/Cargo.toml index c8124fb435..a8d686a5a7 100644 --- a/sdk/identity/Cargo.toml +++ b/sdk/identity/Cargo.toml @@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust" documentation = "https://docs.rs/azure_identity" keywords = ["sdk", "azure", "rest", "iot", "cloud"] categories = ["api-bindings"] -edition = "2018" +edition = "2021" [dependencies] reqwest = { version = "0.11", features = ["json"], default-features = false } diff --git a/sdk/iot_hub/Cargo.toml b/sdk/iot_hub/Cargo.toml index b5927129ac..795f1efebf 100644 --- a/sdk/iot_hub/Cargo.toml +++ b/sdk/iot_hub/Cargo.toml @@ -2,7 +2,7 @@ name = "azure_iot_hub" version = "0.1.0" authors = ["Microsoft Corp."] -edition = "2018" +edition = "2021" description = "Azure IoT Hub" license = "MIT" diff --git a/sdk/messaging_eventgrid/Cargo.toml b/sdk/messaging_eventgrid/Cargo.toml index 910673b788..75cafe54a9 100644 --- a/sdk/messaging_eventgrid/Cargo.toml +++ b/sdk/messaging_eventgrid/Cargo.toml @@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust" documentation = "https://docs.rs/azure_messaging_eventgrid" keywords = ["sdk", "azure", "rest", "iot", "cloud"] categories = ["api-bindings"] -edition = "2018" +edition = "2021" [dependencies] azure_core = { path = "../core", version = "0.1" } diff --git a/sdk/messaging_servicebus/Cargo.toml b/sdk/messaging_servicebus/Cargo.toml index 8fe2fbe58a..31066eb2a5 100644 --- a/sdk/messaging_servicebus/Cargo.toml +++ b/sdk/messaging_servicebus/Cargo.toml @@ -12,7 +12,7 @@ documentation = "https://docs.rs/azure_messaging_servicebus" keywords = ["sdk", "azure", "rest", "iot", "cloud"] categories = ["api-bindings"] -edition = "2018" +edition = "2021" [dependencies] azure_core = { path = "../core", version = "0.1" } diff --git a/sdk/rustfmt.toml b/sdk/rustfmt.toml index a328d250e0..41c30c32a5 100644 --- a/sdk/rustfmt.toml +++ b/sdk/rustfmt.toml @@ -1,2 +1,2 @@ newline_style = "Unix" -edition = "2018" +edition = "2021" diff --git a/sdk/security_keyvault/Cargo.toml b/sdk/security_keyvault/Cargo.toml index 05c3f92c1c..a8fc548762 100644 --- a/sdk/security_keyvault/Cargo.toml +++ b/sdk/security_keyvault/Cargo.toml @@ -10,7 +10,7 @@ keywords = ["azure", "microsoft", "sdk", "keyvault", "cloud"] categories = ["api-bindings"] readme = "README.md" license = "MIT" -edition = "2018" +edition = "2021" [dependencies] base64 = "0.13" diff --git a/sdk/storage/Cargo.toml b/sdk/storage/Cargo.toml index 986f4f8a78..c9cb427d73 100644 --- a/sdk/storage/Cargo.toml +++ b/sdk/storage/Cargo.toml @@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust" documentation = "https://docs.rs/azure_storage" keywords = ["sdk", "azure", "storage"] categories = ["api-bindings"] -edition = "2018" +edition = "2021" [dependencies] async-trait = "0.1" diff --git a/sdk/storage_blobs/Cargo.toml b/sdk/storage_blobs/Cargo.toml index bc7bd1d53b..cf965c03aa 100644 --- a/sdk/storage_blobs/Cargo.toml +++ b/sdk/storage_blobs/Cargo.toml @@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust" documentation = "https://docs.rs/azure_storage_blobs" keywords = ["sdk", "azure", "storage", "blobs"] categories = ["api-bindings"] -edition = "2018" +edition = "2021" [dependencies] azure_core = { path = "../core", version = "0.1", default-features=false } diff --git a/sdk/storage_datalake/Cargo.toml b/sdk/storage_datalake/Cargo.toml index ad6212efe4..4098a92f65 100644 --- a/sdk/storage_datalake/Cargo.toml +++ b/sdk/storage_datalake/Cargo.toml @@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust" documentation = "https://docs.rs/azure_storage_datalake" keywords = ["sdk", "azure", "storage", "datalake"] categories = ["api-bindings"] -edition = "2018" +edition = "2021" [dependencies] async-trait = "0.1" diff --git a/sdk/storage_queues/Cargo.toml b/sdk/storage_queues/Cargo.toml index c898b998d0..773cf331d0 100644 --- a/sdk/storage_queues/Cargo.toml +++ b/sdk/storage_queues/Cargo.toml @@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust" documentation = "https://docs.rs/azure_storage_queues" keywords = ["sdk", "azure", "storage", "queues"] categories = ["api-bindings"] -edition = "2018" +edition = "2021" [dependencies] azure_core = { path = "../core", version = "0.1", default-features=false } From 7c1587b25fbe0856f2cfbde80bf699637d9f611c Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Wed, 23 Mar 2022 18:21:47 -0400 Subject: [PATCH 2/4] cargo fix --edition --- sdk/data_cosmos/src/operations/list_attachments.rs | 1 + sdk/data_cosmos/src/operations/list_collections.rs | 1 + sdk/data_cosmos/src/operations/list_databases.rs | 1 + sdk/data_cosmos/src/operations/list_documents.rs | 1 + sdk/data_cosmos/src/operations/list_permissions.rs | 1 + sdk/data_cosmos/src/operations/list_stored_procedures.rs | 1 + sdk/data_cosmos/src/operations/list_triggers.rs | 1 + sdk/data_cosmos/src/operations/list_user_defined_functions.rs | 1 + sdk/data_cosmos/src/operations/list_users.rs | 1 + sdk/data_cosmos/src/operations/query_documents.rs | 1 + sdk/storage_datalake/src/operations/file_systems_list.rs | 1 + sdk/storage_datalake/src/operations/path_delete.rs | 1 + sdk/storage_datalake/src/operations/path_get.rs | 1 + sdk/storage_datalake/src/operations/path_head.rs | 1 + sdk/storage_datalake/src/operations/path_list.rs | 1 + sdk/storage_datalake/src/operations/path_patch.rs | 1 + sdk/storage_datalake/src/operations/path_put.rs | 2 ++ 17 files changed, 18 insertions(+) diff --git a/sdk/data_cosmos/src/operations/list_attachments.rs b/sdk/data_cosmos/src/operations/list_attachments.rs index f35210a87c..51d6489bdc 100644 --- a/sdk/data_cosmos/src/operations/list_attachments.rs +++ b/sdk/data_cosmos/src/operations/list_attachments.rs @@ -46,6 +46,7 @@ impl ListAttachmentsBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { + let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/colls/{}/docs/{}/attachments", diff --git a/sdk/data_cosmos/src/operations/list_collections.rs b/sdk/data_cosmos/src/operations/list_collections.rs index 93ae9bc36c..c7d9cd5cbd 100644 --- a/sdk/data_cosmos/src/operations/list_collections.rs +++ b/sdk/data_cosmos/src/operations/list_collections.rs @@ -37,6 +37,7 @@ impl ListCollectionsBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { + let _ = &this; let mut request = this.client.prepare_collections_pipeline(http::Method::GET); azure_core::headers::add_optional_header2(&this.consistency_level, &mut request)?; azure_core::headers::add_mandatory_header2(&this.max_item_count, &mut request)?; diff --git a/sdk/data_cosmos/src/operations/list_databases.rs b/sdk/data_cosmos/src/operations/list_databases.rs index 797987fde0..d39d5f59d8 100644 --- a/sdk/data_cosmos/src/operations/list_databases.rs +++ b/sdk/data_cosmos/src/operations/list_databases.rs @@ -38,6 +38,7 @@ impl ListDatabasesBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { + let _ = &this; let mut request = this .client .prepare_request_pipeline("dbs", http::Method::GET); diff --git a/sdk/data_cosmos/src/operations/list_documents.rs b/sdk/data_cosmos/src/operations/list_documents.rs index eebb330f90..abcaf46d36 100644 --- a/sdk/data_cosmos/src/operations/list_documents.rs +++ b/sdk/data_cosmos/src/operations/list_documents.rs @@ -48,6 +48,7 @@ impl ListDocumentsBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { + let _ = &this; let mut req = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/colls/{}/docs", diff --git a/sdk/data_cosmos/src/operations/list_permissions.rs b/sdk/data_cosmos/src/operations/list_permissions.rs index 5ae34aeeee..7bc2b93ec8 100644 --- a/sdk/data_cosmos/src/operations/list_permissions.rs +++ b/sdk/data_cosmos/src/operations/list_permissions.rs @@ -36,6 +36,7 @@ impl ListPermissionsBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { + let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/users/{}/permissions", diff --git a/sdk/data_cosmos/src/operations/list_stored_procedures.rs b/sdk/data_cosmos/src/operations/list_stored_procedures.rs index 2bd1fb4678..3c31c6ccae 100644 --- a/sdk/data_cosmos/src/operations/list_stored_procedures.rs +++ b/sdk/data_cosmos/src/operations/list_stored_procedures.rs @@ -38,6 +38,7 @@ impl ListStoredProceduresBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { + let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/colls/{}/sprocs", diff --git a/sdk/data_cosmos/src/operations/list_triggers.rs b/sdk/data_cosmos/src/operations/list_triggers.rs index cfa41f44f0..eb3641ec42 100644 --- a/sdk/data_cosmos/src/operations/list_triggers.rs +++ b/sdk/data_cosmos/src/operations/list_triggers.rs @@ -41,6 +41,7 @@ impl ListTriggersBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { + let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/colls/{}/triggers", 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 eecb8f0bb3..554692651e 100644 --- a/sdk/data_cosmos/src/operations/list_user_defined_functions.rs +++ b/sdk/data_cosmos/src/operations/list_user_defined_functions.rs @@ -42,6 +42,7 @@ impl ListUserDefinedFunctionsBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { + let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/colls/{}/udfs", diff --git a/sdk/data_cosmos/src/operations/list_users.rs b/sdk/data_cosmos/src/operations/list_users.rs index e2a884ef55..d60fae952e 100644 --- a/sdk/data_cosmos/src/operations/list_users.rs +++ b/sdk/data_cosmos/src/operations/list_users.rs @@ -39,6 +39,7 @@ impl ListUsersBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { + let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!("dbs/{}/users", this.client.database_name()), http::Method::GET, diff --git a/sdk/data_cosmos/src/operations/query_documents.rs b/sdk/data_cosmos/src/operations/query_documents.rs index 80c6ca57f8..adf809358a 100644 --- a/sdk/data_cosmos/src/operations/query_documents.rs +++ b/sdk/data_cosmos/src/operations/query_documents.rs @@ -75,6 +75,7 @@ impl QueryDocumentsBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { + let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/colls/{}/docs", diff --git a/sdk/storage_datalake/src/operations/file_systems_list.rs b/sdk/storage_datalake/src/operations/file_systems_list.rs index 64949a1741..f2b33fe6c6 100644 --- a/sdk/storage_datalake/src/operations/file_systems_list.rs +++ b/sdk/storage_datalake/src/operations/file_systems_list.rs @@ -48,6 +48,7 @@ impl ListFileSystemsBuilder { let ctx = self.context.clone().unwrap_or_default(); async move { + let _ = &this; let mut url = url::Url::parse(this.client.url()).unwrap(); url.query_pairs_mut().append_pair("resource", "account"); this.prefix.append_to_url_query(&mut url); diff --git a/sdk/storage_datalake/src/operations/path_delete.rs b/sdk/storage_datalake/src/operations/path_delete.rs index 74499f7f19..ea53c63929 100644 --- a/sdk/storage_datalake/src/operations/path_delete.rs +++ b/sdk/storage_datalake/src/operations/path_delete.rs @@ -53,6 +53,7 @@ impl DeletePathBuilder { let ctx = self.context.clone(); Box::pin(async move { + let _ = (&this, &self); let mut url = this.client.url()?; if let Some(continuation) = self.continuation { diff --git a/sdk/storage_datalake/src/operations/path_get.rs b/sdk/storage_datalake/src/operations/path_get.rs index 879ab73b67..975d1e6304 100644 --- a/sdk/storage_datalake/src/operations/path_get.rs +++ b/sdk/storage_datalake/src/operations/path_get.rs @@ -55,6 +55,7 @@ impl GetFileBuilder { let ctx = self.context.clone(); Box::pin(async move { + let _ = (&this, &self); let mut url = this.client.url()?; self.timeout.append_to_url_query(&mut url); diff --git a/sdk/storage_datalake/src/operations/path_head.rs b/sdk/storage_datalake/src/operations/path_head.rs index e6ed1b2fe3..c485856524 100644 --- a/sdk/storage_datalake/src/operations/path_head.rs +++ b/sdk/storage_datalake/src/operations/path_head.rs @@ -58,6 +58,7 @@ impl HeadPathBuilder { let ctx = self.context.clone(); Box::pin(async move { + let _ = (&this, &self); let mut url = this.client.url()?; self.action.append_to_url_query(&mut url); diff --git a/sdk/storage_datalake/src/operations/path_list.rs b/sdk/storage_datalake/src/operations/path_list.rs index e030b45ef5..97d513a562 100644 --- a/sdk/storage_datalake/src/operations/path_list.rs +++ b/sdk/storage_datalake/src/operations/path_list.rs @@ -59,6 +59,7 @@ impl ListPathsBuilder { let ctx = self.context.clone(); async move { + let _ = &this; let mut url = this.client.url().unwrap(); ResourceType::FileSystem.append_to_url_query(&mut url); this.recursive.append_to_url_query(&mut url); diff --git a/sdk/storage_datalake/src/operations/path_patch.rs b/sdk/storage_datalake/src/operations/path_patch.rs index 3497690761..e0a5425f80 100644 --- a/sdk/storage_datalake/src/operations/path_patch.rs +++ b/sdk/storage_datalake/src/operations/path_patch.rs @@ -77,6 +77,7 @@ impl PatchPathBuilder { let ctx = self.context.clone(); Box::pin(async move { + let _ = (&this, &self); let mut url = this.client.url()?; if let Some(continuation) = self.continuation { diff --git a/sdk/storage_datalake/src/operations/path_put.rs b/sdk/storage_datalake/src/operations/path_put.rs index 205e3305fb..ec3a71ce7f 100644 --- a/sdk/storage_datalake/src/operations/path_put.rs +++ b/sdk/storage_datalake/src/operations/path_put.rs @@ -67,6 +67,7 @@ impl PutPathBuilder { let ctx = self.context.clone(); Box::pin(async move { + let _ = (&this, &self); let mut url = this.client.url()?; if let Some(continuation) = self.continuation { @@ -145,6 +146,7 @@ impl RenamePathBuilder { let ctx = self.context.clone(); Box::pin(async move { + let _ = (&this, &self); let mut url = this.client.url()?; if let Some(continuation) = self.continuation { From 71968edc954cb9c798047df1ec9b5b2f16b678c1 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Thu, 24 Mar 2022 06:20:30 -0400 Subject: [PATCH 3/4] fix asserts --- sdk/iot_hub/src/service/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sdk/iot_hub/src/service/mod.rs b/sdk/iot_hub/src/service/mod.rs index 2f824de3d3..5be5187651 100644 --- a/sdk/iot_hub/src/service/mod.rs +++ b/sdk/iot_hub/src/service/mod.rs @@ -148,7 +148,7 @@ impl ServiceClient { /// let private_key = "YSB2ZXJ5IHNlY3VyZSBrZXkgaXMgaW1wb3J0YW50Cg=="; /// /// let result = ServiceClient::from_private_key(http_client, iot_hub_name, key_name, private_key, 3600); - /// assert!(result.is_ok(), true); + /// assert!(result.is_ok()); /// ``` pub fn from_private_key( http_client: Arc, @@ -190,7 +190,7 @@ impl ServiceClient { /// let connection_string = "HostName=cool-iot-hub.azure-devices.net;SharedAccessKeyName=iot_hubowner;SharedAccessKey=YSB2ZXJ5IHNlY3VyZSBrZXkgaXMgaW1wb3J0YW50Cg=="; /// /// let result = ServiceClient::from_connection_string(http_client, connection_string, 3600); - /// assert!(result.is_ok(), true); + /// assert!(result.is_ok()); /// ``` pub fn from_connection_string( http_client: Arc, @@ -201,7 +201,6 @@ impl ServiceClient { S: AsRef, { let parts: Vec<&str> = connection_string.as_ref().split(';').collect(); - let mut iot_hub_name: Option<&str> = None; let mut key_name: Option<&str> = None; let mut primary_key: Option<&str> = None; From 6cdce0fed1781d9e146f403bd92b29960658e8e7 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Thu, 24 Mar 2022 06:20:37 -0400 Subject: [PATCH 4/4] Revert "cargo fix --edition" This reverts commit 7c1587b25fbe0856f2cfbde80bf699637d9f611c. --- sdk/data_cosmos/src/operations/list_attachments.rs | 1 - sdk/data_cosmos/src/operations/list_collections.rs | 1 - sdk/data_cosmos/src/operations/list_databases.rs | 1 - sdk/data_cosmos/src/operations/list_documents.rs | 1 - sdk/data_cosmos/src/operations/list_permissions.rs | 1 - sdk/data_cosmos/src/operations/list_stored_procedures.rs | 1 - sdk/data_cosmos/src/operations/list_triggers.rs | 1 - sdk/data_cosmos/src/operations/list_user_defined_functions.rs | 1 - sdk/data_cosmos/src/operations/list_users.rs | 1 - sdk/data_cosmos/src/operations/query_documents.rs | 1 - sdk/storage_datalake/src/operations/file_systems_list.rs | 1 - sdk/storage_datalake/src/operations/path_delete.rs | 1 - sdk/storage_datalake/src/operations/path_get.rs | 1 - sdk/storage_datalake/src/operations/path_head.rs | 1 - sdk/storage_datalake/src/operations/path_list.rs | 1 - sdk/storage_datalake/src/operations/path_patch.rs | 1 - sdk/storage_datalake/src/operations/path_put.rs | 2 -- 17 files changed, 18 deletions(-) diff --git a/sdk/data_cosmos/src/operations/list_attachments.rs b/sdk/data_cosmos/src/operations/list_attachments.rs index 51d6489bdc..f35210a87c 100644 --- a/sdk/data_cosmos/src/operations/list_attachments.rs +++ b/sdk/data_cosmos/src/operations/list_attachments.rs @@ -46,7 +46,6 @@ impl ListAttachmentsBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { - let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/colls/{}/docs/{}/attachments", diff --git a/sdk/data_cosmos/src/operations/list_collections.rs b/sdk/data_cosmos/src/operations/list_collections.rs index c7d9cd5cbd..93ae9bc36c 100644 --- a/sdk/data_cosmos/src/operations/list_collections.rs +++ b/sdk/data_cosmos/src/operations/list_collections.rs @@ -37,7 +37,6 @@ impl ListCollectionsBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { - let _ = &this; let mut request = this.client.prepare_collections_pipeline(http::Method::GET); azure_core::headers::add_optional_header2(&this.consistency_level, &mut request)?; azure_core::headers::add_mandatory_header2(&this.max_item_count, &mut request)?; diff --git a/sdk/data_cosmos/src/operations/list_databases.rs b/sdk/data_cosmos/src/operations/list_databases.rs index d39d5f59d8..797987fde0 100644 --- a/sdk/data_cosmos/src/operations/list_databases.rs +++ b/sdk/data_cosmos/src/operations/list_databases.rs @@ -38,7 +38,6 @@ impl ListDatabasesBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { - let _ = &this; let mut request = this .client .prepare_request_pipeline("dbs", http::Method::GET); diff --git a/sdk/data_cosmos/src/operations/list_documents.rs b/sdk/data_cosmos/src/operations/list_documents.rs index abcaf46d36..eebb330f90 100644 --- a/sdk/data_cosmos/src/operations/list_documents.rs +++ b/sdk/data_cosmos/src/operations/list_documents.rs @@ -48,7 +48,6 @@ impl ListDocumentsBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { - let _ = &this; let mut req = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/colls/{}/docs", diff --git a/sdk/data_cosmos/src/operations/list_permissions.rs b/sdk/data_cosmos/src/operations/list_permissions.rs index 7bc2b93ec8..5ae34aeeee 100644 --- a/sdk/data_cosmos/src/operations/list_permissions.rs +++ b/sdk/data_cosmos/src/operations/list_permissions.rs @@ -36,7 +36,6 @@ impl ListPermissionsBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { - let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/users/{}/permissions", diff --git a/sdk/data_cosmos/src/operations/list_stored_procedures.rs b/sdk/data_cosmos/src/operations/list_stored_procedures.rs index 3c31c6ccae..2bd1fb4678 100644 --- a/sdk/data_cosmos/src/operations/list_stored_procedures.rs +++ b/sdk/data_cosmos/src/operations/list_stored_procedures.rs @@ -38,7 +38,6 @@ impl ListStoredProceduresBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { - let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/colls/{}/sprocs", diff --git a/sdk/data_cosmos/src/operations/list_triggers.rs b/sdk/data_cosmos/src/operations/list_triggers.rs index eb3641ec42..cfa41f44f0 100644 --- a/sdk/data_cosmos/src/operations/list_triggers.rs +++ b/sdk/data_cosmos/src/operations/list_triggers.rs @@ -41,7 +41,6 @@ impl ListTriggersBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { - let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/colls/{}/triggers", 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 554692651e..eecb8f0bb3 100644 --- a/sdk/data_cosmos/src/operations/list_user_defined_functions.rs +++ b/sdk/data_cosmos/src/operations/list_user_defined_functions.rs @@ -42,7 +42,6 @@ impl ListUserDefinedFunctionsBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { - let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/colls/{}/udfs", diff --git a/sdk/data_cosmos/src/operations/list_users.rs b/sdk/data_cosmos/src/operations/list_users.rs index d60fae952e..e2a884ef55 100644 --- a/sdk/data_cosmos/src/operations/list_users.rs +++ b/sdk/data_cosmos/src/operations/list_users.rs @@ -39,7 +39,6 @@ impl ListUsersBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { - let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!("dbs/{}/users", this.client.database_name()), http::Method::GET, diff --git a/sdk/data_cosmos/src/operations/query_documents.rs b/sdk/data_cosmos/src/operations/query_documents.rs index adf809358a..80c6ca57f8 100644 --- a/sdk/data_cosmos/src/operations/query_documents.rs +++ b/sdk/data_cosmos/src/operations/query_documents.rs @@ -75,7 +75,6 @@ impl QueryDocumentsBuilder { let this = self.clone(); let ctx = self.context.clone(); async move { - let _ = &this; let mut request = this.client.cosmos_client().prepare_request_pipeline( &format!( "dbs/{}/colls/{}/docs", diff --git a/sdk/storage_datalake/src/operations/file_systems_list.rs b/sdk/storage_datalake/src/operations/file_systems_list.rs index f2b33fe6c6..64949a1741 100644 --- a/sdk/storage_datalake/src/operations/file_systems_list.rs +++ b/sdk/storage_datalake/src/operations/file_systems_list.rs @@ -48,7 +48,6 @@ impl ListFileSystemsBuilder { let ctx = self.context.clone().unwrap_or_default(); async move { - let _ = &this; let mut url = url::Url::parse(this.client.url()).unwrap(); url.query_pairs_mut().append_pair("resource", "account"); this.prefix.append_to_url_query(&mut url); diff --git a/sdk/storage_datalake/src/operations/path_delete.rs b/sdk/storage_datalake/src/operations/path_delete.rs index ea53c63929..74499f7f19 100644 --- a/sdk/storage_datalake/src/operations/path_delete.rs +++ b/sdk/storage_datalake/src/operations/path_delete.rs @@ -53,7 +53,6 @@ impl DeletePathBuilder { let ctx = self.context.clone(); Box::pin(async move { - let _ = (&this, &self); let mut url = this.client.url()?; if let Some(continuation) = self.continuation { diff --git a/sdk/storage_datalake/src/operations/path_get.rs b/sdk/storage_datalake/src/operations/path_get.rs index 975d1e6304..879ab73b67 100644 --- a/sdk/storage_datalake/src/operations/path_get.rs +++ b/sdk/storage_datalake/src/operations/path_get.rs @@ -55,7 +55,6 @@ impl GetFileBuilder { let ctx = self.context.clone(); Box::pin(async move { - let _ = (&this, &self); let mut url = this.client.url()?; self.timeout.append_to_url_query(&mut url); diff --git a/sdk/storage_datalake/src/operations/path_head.rs b/sdk/storage_datalake/src/operations/path_head.rs index c485856524..e6ed1b2fe3 100644 --- a/sdk/storage_datalake/src/operations/path_head.rs +++ b/sdk/storage_datalake/src/operations/path_head.rs @@ -58,7 +58,6 @@ impl HeadPathBuilder { let ctx = self.context.clone(); Box::pin(async move { - let _ = (&this, &self); let mut url = this.client.url()?; self.action.append_to_url_query(&mut url); diff --git a/sdk/storage_datalake/src/operations/path_list.rs b/sdk/storage_datalake/src/operations/path_list.rs index 97d513a562..e030b45ef5 100644 --- a/sdk/storage_datalake/src/operations/path_list.rs +++ b/sdk/storage_datalake/src/operations/path_list.rs @@ -59,7 +59,6 @@ impl ListPathsBuilder { let ctx = self.context.clone(); async move { - let _ = &this; let mut url = this.client.url().unwrap(); ResourceType::FileSystem.append_to_url_query(&mut url); this.recursive.append_to_url_query(&mut url); diff --git a/sdk/storage_datalake/src/operations/path_patch.rs b/sdk/storage_datalake/src/operations/path_patch.rs index e0a5425f80..3497690761 100644 --- a/sdk/storage_datalake/src/operations/path_patch.rs +++ b/sdk/storage_datalake/src/operations/path_patch.rs @@ -77,7 +77,6 @@ impl PatchPathBuilder { let ctx = self.context.clone(); Box::pin(async move { - let _ = (&this, &self); let mut url = this.client.url()?; if let Some(continuation) = self.continuation { diff --git a/sdk/storage_datalake/src/operations/path_put.rs b/sdk/storage_datalake/src/operations/path_put.rs index ec3a71ce7f..205e3305fb 100644 --- a/sdk/storage_datalake/src/operations/path_put.rs +++ b/sdk/storage_datalake/src/operations/path_put.rs @@ -67,7 +67,6 @@ impl PutPathBuilder { let ctx = self.context.clone(); Box::pin(async move { - let _ = (&this, &self); let mut url = this.client.url()?; if let Some(continuation) = self.continuation { @@ -146,7 +145,6 @@ impl RenamePathBuilder { let ctx = self.context.clone(); Box::pin(async move { - let _ = (&this, &self); let mut url = this.client.url()?; if let Some(continuation) = self.continuation {