aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Tyler Holmes <tyler@holmesengineering.com> 2021-12-31 10:30:28 -0800
committerGravatar Tyler Holmes <tyler@holmesengineering.com> 2021-12-31 10:30:28 -0800
commitccdc7ccf906fd5a2c32ed947c404e41069662d20 (patch)
tree52609a2310ba57186e52576d4faabdabd02e76f1 /src
parent8ef3eb9ea314a4edd9971541aa42696e868f8c7d (diff)
downloadcortex-m-ccdc7ccf906fd5a2c32ed947c404e41069662d20.tar.gz
cortex-m-ccdc7ccf906fd5a2c32ed947c404e41069662d20.tar.zst
cortex-m-ccdc7ccf906fd5a2c32ed947c404e41069662d20.zip
clippy cleanup
Diffstat (limited to 'src')
-rw-r--r--src/peripheral/scb.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peripheral/scb.rs b/src/peripheral/scb.rs
index 0e82b73..650aede 100644
--- a/src/peripheral/scb.rs
+++ b/src/peripheral/scb.rs
@@ -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,
})
}