Skip to content

Commit

Permalink
Add rustfmt.toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Dec 13, 2022
1 parent 67d728b commit de749ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
group_imports = "StdExternalCrate"
imports_granularity = "Module"
max_width=120
6 changes: 1 addition & 5 deletions src/interrupts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,7 @@ impl ChipInterrupts {
let mut irqs2 = HashMap::<_, Vec<_>>::new();
for (name, signals) in irqs {
for (p, s) in signals {
let key = if p == "USB_DRD_FS" {
"USB".to_string()
} else {
p
};
let key = if p == "USB_DRD_FS" { "USB".to_string() } else { p };
irqs2
.entry(key)
.or_default()
Expand Down

0 comments on commit de749ac

Please sign in to comment.