Skip to content

Commit

Permalink
clippy cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TDHolmes committed Dec 31, 2021
1 parent 8ef3eb9 commit ccdc7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/peripheral/scb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ impl VectActive {
12 => VectActive::Exception(Exception::DebugMonitor),
14 => VectActive::Exception(Exception::PendSV),
15 => VectActive::Exception(Exception::SysTick),
irqn if irqn >= 16 && irqn < 512 => VectActive::Interrupt { irqn: irqn - 16 },
irqn if (16..512).contains(&irqn) => VectActive::Interrupt { irqn: irqn - 16 },
_ => return None,
})
}
Expand Down

0 comments on commit ccdc7cc

Please sign in to comment.