Restyled by rustfmt
This commit is contained in:
parent
760b543d17
commit
db43ce7aeb
2 changed files with 3 additions and 9 deletions
|
@ -171,12 +171,7 @@ impl Default for Attribute {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Attribute {
|
impl Attribute {
|
||||||
pub fn new(
|
pub fn new(id: u16, value: AttrValue, access: Access, quality: Quality) -> Self {
|
||||||
id: u16,
|
|
||||||
value: AttrValue,
|
|
||||||
access: Access,
|
|
||||||
quality: Quality,
|
|
||||||
) -> Self {
|
|
||||||
Attribute {
|
Attribute {
|
||||||
id,
|
id,
|
||||||
value,
|
value,
|
||||||
|
|
|
@ -165,9 +165,8 @@ impl GenCommCluster {
|
||||||
c.base
|
c.base
|
||||||
.add_attribute(attr_reg_config_new(RegLocationType::IndoorOutdoor))?;
|
.add_attribute(attr_reg_config_new(RegLocationType::IndoorOutdoor))?;
|
||||||
// TODO: Arch-Specific
|
// TODO: Arch-Specific
|
||||||
c.base.add_attribute(attr_location_capability_new(
|
c.base
|
||||||
RegLocationType::IndoorOutdoor,
|
.add_attribute(attr_location_capability_new(RegLocationType::IndoorOutdoor))?;
|
||||||
))?;
|
|
||||||
c.base.add_attribute(attr_comm_info_new())?;
|
c.base.add_attribute(attr_comm_info_new())?;
|
||||||
|
|
||||||
Ok(c)
|
Ok(c)
|
||||||
|
|
Loading…
Add table
Reference in a new issue