Skip to content

Commit

Permalink
Merge pull request tock#4114 from tock/clippy-match-single-binding
Browse files Browse the repository at this point in the history
clippy: deny `match-single-binding`
  • Loading branch information
alevy authored Jul 24, 2024
2 parents bbcec36 + 5aa78f2 commit 925a233
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,8 @@ only_used_in_recursion = "allow"
manual-range-patterns = "allow"
manual-flatten = "allow"


zero_prefixed_literal = "allow"


match-single-binding = "allow"


# STYLE
style = { level = "deny", priority = -1 }

Expand Down
1 change: 1 addition & 0 deletions chips/stm32f401cc/src/interrupt_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ impl<'a> Stm32f401ccDefaultPeripherals<'a> {
}
impl<'a> kernel::platform::chip::InterruptService for Stm32f401ccDefaultPeripherals<'a> {
unsafe fn service_interrupt(&self, interrupt: u32) -> bool {
#[allow(clippy::match_single_binding)]
match interrupt {
// put Stm32f401cc specific interrupts here
_ => self.stm32f4.service_interrupt(interrupt),
Expand Down
1 change: 1 addition & 0 deletions chips/stm32f446re/src/interrupt_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ impl<'a> Stm32f446reDefaultPeripherals<'a> {
}
impl<'a> kernel::platform::chip::InterruptService for Stm32f446reDefaultPeripherals<'a> {
unsafe fn service_interrupt(&self, interrupt: u32) -> bool {
#[allow(clippy::match_single_binding)]
match interrupt {
// put Stm32f446re specific interrupts here
_ => self.stm32f4.service_interrupt(interrupt),
Expand Down

0 comments on commit 925a233

Please sign in to comment.