Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
cgettys-microsoft committed Jan 13, 2025
1 parent 6806771 commit 3ee1cec
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 30 deletions.
11 changes: 3 additions & 8 deletions crates/libs/core/src/client/health_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,13 @@ pub struct HealthClient {
com: IFabricHealthClient4,
}

impl From<IFabricHealthClient4> for HealthClient
{
impl From<IFabricHealthClient4> for HealthClient {
fn from(value: IFabricHealthClient4) -> Self {
Self
{
com: value
}
Self { com: value }
}
}

impl From<HealthClient> for IFabricHealthClient4
{
impl From<HealthClient> for IFabricHealthClient4 {
fn from(value: HealthClient) -> Self {
value.com
}
Expand Down
8 changes: 3 additions & 5 deletions crates/libs/core/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,14 @@ pub struct PropertyManagementClient {
com: IFabricPropertyManagementClient2,
}

impl From<IFabricPropertyManagementClient2> for PropertyManagementClient
{
impl From<IFabricPropertyManagementClient2> for PropertyManagementClient {
fn from(com: IFabricPropertyManagementClient2) -> Self {
Self { com }
}
}

impl From<PropertyManagementClient> for IFabricPropertyManagementClient2
{
impl From<PropertyManagementClient> for IFabricPropertyManagementClient2 {
fn from(value: PropertyManagementClient) -> Self {
value.com
}
}
}
6 changes: 2 additions & 4 deletions crates/libs/core/src/client/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,13 @@ pub struct ServiceEndpointsVersion {
com: IFabricServiceEndpointsVersion,
}

impl From<IFabricServiceEndpointsVersion> for ServiceEndpointsVersion
{
impl From<IFabricServiceEndpointsVersion> for ServiceEndpointsVersion {
fn from(com: IFabricServiceEndpointsVersion) -> Self {
Self { com }
}
}

impl From<ServiceEndpointsVersion> for IFabricServiceEndpointsVersion
{
impl From<ServiceEndpointsVersion> for IFabricServiceEndpointsVersion {
fn from(value: ServiceEndpointsVersion) -> Self {
value.com
}
Expand Down
3 changes: 1 addition & 2 deletions crates/libs/core/src/client/query_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ impl From<IFabricQueryClient10> for QueryClient {
}
}

impl From<QueryClient> for IFabricQueryClient10
{
impl From<QueryClient> for IFabricQueryClient10 {
fn from(value: QueryClient) -> Self {
value.com
}
Expand Down
3 changes: 1 addition & 2 deletions crates/libs/core/src/client/svc_mgmt_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,7 @@ pub struct ResolvedServiceEndpointList {
com: IFabricResolvedServicePartitionResult,
}

impl From<IFabricResolvedServicePartitionResult> for ResolvedServiceEndpointList
{
impl From<IFabricResolvedServicePartitionResult> for ResolvedServiceEndpointList {
fn from(com: IFabricResolvedServicePartitionResult) -> Self {
Self { com }
}
Expand Down
6 changes: 2 additions & 4 deletions crates/libs/core/src/runtime/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,13 @@ impl FabricListAccessor<FABRIC_CONFIGURATION_SECTION> for ConfigurationSectionLi
}
}

impl From<IFabricConfigurationPackage> for ConfigurationPackage
{
impl From<IFabricConfigurationPackage> for ConfigurationPackage {
fn from(com: IFabricConfigurationPackage) -> Self {
Self { com }
}
}

impl From<ConfigurationPackage> for IFabricConfigurationPackage
{
impl From<ConfigurationPackage> for IFabricConfigurationPackage {
fn from(value: ConfigurationPackage) -> Self {
value.com
}
Expand Down
3 changes: 1 addition & 2 deletions crates/libs/core/src/runtime/package_change/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ where
configpackage: windows_core::Ref<mssf_com::FabricRuntime::IFabricConfigurationPackage>,
) {
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,
Expand Down
3 changes: 1 addition & 2 deletions crates/libs/core/src/types/client/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ impl FabricListAccessor<FABRIC_NODE_QUERY_RESULT_ITEM> for NodeList {
}
}

impl From<IFabricGetNodeListResult2> for NodeList
{
impl From<IFabricGetNodeListResult2> for NodeList {
fn from(com: IFabricGetNodeListResult2) -> Self {
Self { com }
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 3ee1cec

Please sign in to comment.