Skip to content

Commit fc962d8

Browse files
committed
fmt
1 parent 22ffac5 commit fc962d8

File tree

23 files changed

+94
-92
lines changed

23 files changed

+94
-92
lines changed

crates/powerlink-rs-xdc/src/builder/app_process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,4 +360,4 @@ pub(super) fn build_model_application_process(
360360
})
361361
},
362362
}
363-
}
363+
}

crates/powerlink-rs-xdc/src/builder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,4 +502,4 @@ mod tests {
502502
assert_eq!(map_pdo_mapping_to_model(PublicPdo::Tpdo), ModelPdo::Tpdo);
503503
assert_eq!(map_pdo_mapping_to_model(PublicPdo::Rpdo), ModelPdo::Rpdo);
504504
}
505-
}
505+
}

crates/powerlink-rs-xdc/src/builder/net_mgmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,4 @@ mod tests {
242242
Some(model::net_mgmt::CnFeaturesNmtCnDna::ClearOnNmtResetNode)
243243
);
244244
}
245-
}
245+
}

crates/powerlink-rs-xdc/src/converter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,4 +788,4 @@ mod tests {
788788
let result = extract_nmt_settings(&xdc_file);
789789
assert!(result.is_err());
790790
}
791-
}
791+
}

crates/powerlink-rs-xdc/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use alloc::fmt;
22
use alloc::string::String;
33
use core::num::ParseIntError;
44
use hex::FromHexError;
5-
use quick_xml::errors::serialize::{DeError, SeError};
65
use quick_xml::Error as XmlError;
6+
use quick_xml::errors::serialize::{DeError, SeError};
77

88
/// Errors that can occur during XDC parsing, validation, or serialization.
99
#[derive(Debug)]
@@ -142,4 +142,4 @@ mod tests {
142142
}
143143
));
144144
}
145-
}
145+
}

crates/powerlink-rs-xdc/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mod types;
2424

2525
// Functions
2626
pub use builder::save_xdc_to_string;
27-
pub use converter::{extract_nmt_settings, to_core_od, xdc_to_storage_map, NmtSettings};
27+
pub use converter::{NmtSettings, extract_nmt_settings, to_core_od, xdc_to_storage_map};
2828
pub use error::XdcError;
2929
pub use parser::{load_xdc_from_str, load_xdd_defaults_from_str};
3030

@@ -40,4 +40,4 @@ pub use types::{
4040
ParameterGroup, ParameterGroupItem, ParameterRef, ParameterSupport, Picture, ProfileHeader,
4141
Range, StandardCompliance, StaticErrorBit, StructMember, SubObject, Value, ValueRange,
4242
VarDeclaration, Version, VersionInfo, XdcFile,
43-
};
43+
};

crates/powerlink-rs-xdc/src/model/app_layers.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ pub struct Object {
8181
pub index: String,
8282

8383
// --- Fields from ag_Powerlink_Object ---
84-
8584
#[serde(rename = "@name")]
8685
pub name: String,
8786

@@ -152,7 +151,6 @@ pub struct Object {
152151
pub unique_id_ref: Option<String>,
153152

154153
// --- End of fields from ag_Powerlink_Object ---
155-
156154
/// This attribute is used by modular devices to reference an index range.
157155
/// (from `t_Object_Extension_Head` and `t_Object_Extension`)
158156
#[serde(
@@ -175,7 +173,6 @@ pub struct SubObject {
175173
pub sub_index: String,
176174

177175
// --- Fields from ag_Powerlink_Object ---
178-
179176
#[serde(rename = "@name")]
180177
pub name: String,
181178

@@ -301,4 +298,4 @@ pub enum DataTypeName {
301298
#[serde(rename = "IP_ADDRESS")]
302299
IpAddress,
303300
NETTIME,
304-
}
301+
}

crates/powerlink-rs-xdc/src/model/app_process.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! (Schema: `ProfileBody_Device_Powerlink.xsd`)
44
5-
use super::common::{bool_false, is_false, DataTypeIDRef, Glabels};
5+
use super::common::{DataTypeIDRef, Glabels, bool_false, is_false};
66
use alloc::string::String;
77
use alloc::vec::Vec;
88
use serde::{Deserialize, Serialize};
@@ -757,4 +757,4 @@ pub struct ParameterRef {
757757
skip_serializing_if = "Option::is_none"
758758
)]
759759
pub bit_offset: Option<String>, // xsd:nonNegativeInteger
760-
}
760+
}

crates/powerlink-rs-xdc/src/model/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@ pub struct AttributedGlabels {
134134
pub struct DataTypeIDRef {
135135
#[serde(rename = "@uniqueIDRef")]
136136
pub unique_id_ref: String,
137-
}
137+
}

crates/powerlink-rs-xdc/src/model/device_function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,4 @@ pub struct ClassificationList {
264264
pub struct Classification {
265265
#[serde(rename = "@value")]
266266
pub value: String,
267-
}
267+
}

0 commit comments

Comments
 (0)