diff --git a/crates/libs/core/src/client/health_client.rs b/crates/libs/core/src/client/health_client.rs index 4b6bccc..25d00dd 100644 --- a/crates/libs/core/src/client/health_client.rs +++ b/crates/libs/core/src/client/health_client.rs @@ -31,18 +31,13 @@ pub struct HealthClient { com: IFabricHealthClient4, } -impl From for HealthClient -{ +impl From for HealthClient { fn from(value: IFabricHealthClient4) -> Self { - Self - { - com: value - } + Self { com: value } } } -impl From for IFabricHealthClient4 -{ +impl From for IFabricHealthClient4 { fn from(value: HealthClient) -> Self { value.com } diff --git a/crates/libs/core/src/client/mod.rs b/crates/libs/core/src/client/mod.rs index 4937c07..d8960eb 100644 --- a/crates/libs/core/src/client/mod.rs +++ b/crates/libs/core/src/client/mod.rs @@ -259,16 +259,14 @@ pub struct PropertyManagementClient { com: IFabricPropertyManagementClient2, } -impl From for PropertyManagementClient -{ +impl From for PropertyManagementClient { fn from(com: IFabricPropertyManagementClient2) -> Self { Self { com } } } -impl From for IFabricPropertyManagementClient2 -{ +impl From for IFabricPropertyManagementClient2 { fn from(value: PropertyManagementClient) -> Self { value.com } -} \ No newline at end of file +} diff --git a/crates/libs/core/src/client/notification.rs b/crates/libs/core/src/client/notification.rs index 969436b..ced6a63 100644 --- a/crates/libs/core/src/client/notification.rs +++ b/crates/libs/core/src/client/notification.rs @@ -98,15 +98,13 @@ pub struct ServiceEndpointsVersion { com: IFabricServiceEndpointsVersion, } -impl From for ServiceEndpointsVersion -{ +impl From for ServiceEndpointsVersion { fn from(com: IFabricServiceEndpointsVersion) -> Self { Self { com } } } -impl From for IFabricServiceEndpointsVersion -{ +impl From for IFabricServiceEndpointsVersion { fn from(value: ServiceEndpointsVersion) -> Self { value.com } diff --git a/crates/libs/core/src/client/query_client.rs b/crates/libs/core/src/client/query_client.rs index feae052..6b2e564 100644 --- a/crates/libs/core/src/client/query_client.rs +++ b/crates/libs/core/src/client/query_client.rs @@ -119,8 +119,7 @@ impl From for QueryClient { } } -impl From for IFabricQueryClient10 -{ +impl From for IFabricQueryClient10 { fn from(value: QueryClient) -> Self { value.com } diff --git a/crates/libs/core/src/client/svc_mgmt_client.rs b/crates/libs/core/src/client/svc_mgmt_client.rs index 5e1d0e9..b5e9b16 100644 --- a/crates/libs/core/src/client/svc_mgmt_client.rs +++ b/crates/libs/core/src/client/svc_mgmt_client.rs @@ -477,8 +477,7 @@ pub struct ResolvedServiceEndpointList { com: IFabricResolvedServicePartitionResult, } -impl From for ResolvedServiceEndpointList -{ +impl From for ResolvedServiceEndpointList { fn from(com: IFabricResolvedServicePartitionResult) -> Self { Self { com } } diff --git a/crates/libs/core/src/runtime/config.rs b/crates/libs/core/src/runtime/config.rs index 6fa5a80..d1b6ece 100644 --- a/crates/libs/core/src/runtime/config.rs +++ b/crates/libs/core/src/runtime/config.rs @@ -62,15 +62,13 @@ impl FabricListAccessor for ConfigurationSectionLi } } -impl From for ConfigurationPackage -{ +impl From for ConfigurationPackage { fn from(com: IFabricConfigurationPackage) -> Self { Self { com } } } -impl From for IFabricConfigurationPackage -{ +impl From for IFabricConfigurationPackage { fn from(value: ConfigurationPackage) -> Self { value.com } diff --git a/crates/libs/core/src/runtime/package_change/config.rs b/crates/libs/core/src/runtime/package_change/config.rs index 119a1f5..390783f 100644 --- a/crates/libs/core/src/runtime/package_change/config.rs +++ b/crates/libs/core/src/runtime/package_change/config.rs @@ -71,8 +71,7 @@ where configpackage: windows_core::Ref, ) { let new_package = ConfigurationPackage::from(configpackage.unwrap().clone()); - let previous_package = - ConfigurationPackage::from(previousconfigpackage.unwrap().clone()); + let previous_package = ConfigurationPackage::from(previousconfigpackage.unwrap().clone()); let event = ConfigurationPackageChangeEvent::Modification { previous_package, new_package, diff --git a/crates/libs/core/src/types/client/node.rs b/crates/libs/core/src/types/client/node.rs index 13b3ba9..b3c9f55 100644 --- a/crates/libs/core/src/types/client/node.rs +++ b/crates/libs/core/src/types/client/node.rs @@ -85,8 +85,7 @@ impl FabricListAccessor for NodeList { } } -impl From for NodeList -{ +impl From for NodeList { fn from(com: IFabricGetNodeListResult2) -> Self { Self { com } } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 105b10f..355a582 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -2,5 +2,5 @@ # cargo + rustup will use this to consistently build the project # with the same version across all checkouts and environments [toolchain] -channel = "1.84.0" +channel = "ms-1.84" profile = "default"