Skip to content

Commit be2a672

Browse files
cataggarctaggart
andauthored
bump edition to 2021 (Azure#696)
* bump edition to 2021 * cargo fix --edition * fix asserts * Revert "cargo fix --edition" This reverts commit 7c1587b. Co-authored-by: Cameron Taggart <cameron.taggart@gmail.com>
1 parent e714cfc commit be2a672

File tree

14 files changed

+15
-16
lines changed

14 files changed

+15
-16
lines changed

sdk/core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust"
1010
documentation = "https://docs.rs/azure_core"
1111
keywords = ["sdk", "azure", "rest", "iot", "cloud"]
1212
categories = ["api-bindings"]
13-
edition = "2018"
13+
edition = "2021"
1414

1515
[dependencies]
1616
async-trait = "0.1"

sdk/data_cosmos/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ documentation = "https://docs.rs/azure_data_cosmos"
1212
keywords = ["sdk", "azure", "rest", "iot", "cloud"]
1313
categories = ["api-bindings"]
1414

15-
edition = "2018"
15+
edition = "2021"
1616

1717
[dependencies]
1818
async-trait = "0.1"

sdk/data_tables/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust"
1010
documentation = "https://docs.rs/azure_data_tables"
1111
keywords = ["sdk", "azure", "storage", "data-tables"]
1212
categories = ["api-bindings"]
13-
edition = "2018"
13+
edition = "2021"
1414

1515
[dependencies]
1616
azure_core = { path = "../core", version = "0.1", default-features=false}

sdk/identity/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust"
1010
documentation = "https://docs.rs/azure_identity"
1111
keywords = ["sdk", "azure", "rest", "iot", "cloud"]
1212
categories = ["api-bindings"]
13-
edition = "2018"
13+
edition = "2021"
1414

1515
[dependencies]
1616
reqwest = { version = "0.11", features = ["json"], default-features = false }

sdk/iot_hub/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "azure_iot_hub"
33
version = "0.1.0"
44
authors = ["Microsoft Corp."]
5-
edition = "2018"
5+
edition = "2021"
66
description = "Azure IoT Hub"
77
license = "MIT"
88

sdk/iot_hub/src/service/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl ServiceClient {
148148
/// let private_key = "YSB2ZXJ5IHNlY3VyZSBrZXkgaXMgaW1wb3J0YW50Cg==";
149149
///
150150
/// let result = ServiceClient::from_private_key(http_client, iot_hub_name, key_name, private_key, 3600);
151-
/// assert!(result.is_ok(), true);
151+
/// assert!(result.is_ok());
152152
/// ```
153153
pub fn from_private_key<S, T, U>(
154154
http_client: Arc<dyn HttpClient>,
@@ -190,7 +190,7 @@ impl ServiceClient {
190190
/// let connection_string = "HostName=cool-iot-hub.azure-devices.net;SharedAccessKeyName=iot_hubowner;SharedAccessKey=YSB2ZXJ5IHNlY3VyZSBrZXkgaXMgaW1wb3J0YW50Cg==";
191191
///
192192
/// let result = ServiceClient::from_connection_string(http_client, connection_string, 3600);
193-
/// assert!(result.is_ok(), true);
193+
/// assert!(result.is_ok());
194194
/// ```
195195
pub fn from_connection_string<S>(
196196
http_client: Arc<dyn HttpClient>,
@@ -201,7 +201,6 @@ impl ServiceClient {
201201
S: AsRef<str>,
202202
{
203203
let parts: Vec<&str> = connection_string.as_ref().split(';').collect();
204-
205204
let mut iot_hub_name: Option<&str> = None;
206205
let mut key_name: Option<&str> = None;
207206
let mut primary_key: Option<&str> = None;

sdk/messaging_eventgrid/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust"
1010
documentation = "https://docs.rs/azure_messaging_eventgrid"
1111
keywords = ["sdk", "azure", "rest", "iot", "cloud"]
1212
categories = ["api-bindings"]
13-
edition = "2018"
13+
edition = "2021"
1414

1515
[dependencies]
1616
azure_core = { path = "../core", version = "0.1" }

sdk/messaging_servicebus/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ documentation = "https://docs.rs/azure_messaging_servicebus"
1212
keywords = ["sdk", "azure", "rest", "iot", "cloud"]
1313
categories = ["api-bindings"]
1414

15-
edition = "2018"
15+
edition = "2021"
1616

1717
[dependencies]
1818
azure_core = { path = "../core", version = "0.1" }

sdk/rustfmt.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
newline_style = "Unix"
2-
edition = "2018"
2+
edition = "2021"

sdk/security_keyvault/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ keywords = ["azure", "microsoft", "sdk", "keyvault", "cloud"]
1010
categories = ["api-bindings"]
1111
readme = "README.md"
1212
license = "MIT"
13-
edition = "2018"
13+
edition = "2021"
1414

1515
[dependencies]
1616
base64 = "0.13"

sdk/storage/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust"
1010
documentation = "https://docs.rs/azure_storage"
1111
keywords = ["sdk", "azure", "storage"]
1212
categories = ["api-bindings"]
13-
edition = "2018"
13+
edition = "2021"
1414

1515
[dependencies]
1616
async-trait = "0.1"

sdk/storage_blobs/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust"
1010
documentation = "https://docs.rs/azure_storage_blobs"
1111
keywords = ["sdk", "azure", "storage", "blobs"]
1212
categories = ["api-bindings"]
13-
edition = "2018"
13+
edition = "2021"
1414

1515
[dependencies]
1616
azure_core = { path = "../core", version = "0.1", default-features=false }

sdk/storage_datalake/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust"
1010
documentation = "https://docs.rs/azure_storage_datalake"
1111
keywords = ["sdk", "azure", "storage", "datalake"]
1212
categories = ["api-bindings"]
13-
edition = "2018"
13+
edition = "2021"
1414

1515
[dependencies]
1616
async-trait = "0.1"

sdk/storage_queues/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://github.com/azure/azure-sdk-for-rust"
1010
documentation = "https://docs.rs/azure_storage_queues"
1111
keywords = ["sdk", "azure", "storage", "queues"]
1212
categories = ["api-bindings"]
13-
edition = "2018"
13+
edition = "2021"
1414

1515
[dependencies]
1616
azure_core = { path = "../core", version = "0.1", default-features=false }

0 commit comments

Comments
 (0)