Skip to content

Commit db43ce7

Browse files
restyled-commitsdstrub18
authored andcommitted
Restyled by rustfmt
1 parent 760b543 commit db43ce7

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

matter/src/data_model/objects/attribute.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,7 @@ impl Default for Attribute {
171171
}
172172

173173
impl Attribute {
174-
pub fn new(
175-
id: u16,
176-
value: AttrValue,
177-
access: Access,
178-
quality: Quality,
179-
) -> Self {
174+
pub fn new(id: u16, value: AttrValue, access: Access, quality: Quality) -> Self {
180175
Attribute {
181176
id,
182177
value,

matter/src/data_model/sdm/general_commissioning.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,8 @@ impl GenCommCluster {
165165
c.base
166166
.add_attribute(attr_reg_config_new(RegLocationType::IndoorOutdoor))?;
167167
// TODO: Arch-Specific
168-
c.base.add_attribute(attr_location_capability_new(
169-
RegLocationType::IndoorOutdoor,
170-
))?;
168+
c.base
169+
.add_attribute(attr_location_capability_new(RegLocationType::IndoorOutdoor))?;
171170
c.base.add_attribute(attr_comm_info_new())?;
172171

173172
Ok(c)

0 commit comments

Comments
 (0)