Skip to content

Commit

Permalink
Apply rustfmt to peripheral.rs
Browse files Browse the repository at this point in the history
Signed-off-by: trembel <silvano.cortesi@hotmail.com>
  • Loading branch information
trembel authored Nov 24, 2020
1 parent 4f8450c commit 11729b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/atdf/peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ pub fn parse_list(

peripherals.push(chip::Peripheral {
name: instance.attr("name")?.clone(),
description: instance.attr("caption").or(module.attr("caption")).ok().cloned(),
description: instance
.attr("caption")
.or(module.attr("caption"))
.ok()
.cloned(),
registers,
})
}
Expand Down

0 comments on commit 11729b2

Please sign in to comment.