diff options
author | 2021-12-31 10:30:28 -0800 | |
---|---|---|
committer | 2021-12-31 10:30:28 -0800 | |
commit | ccdc7ccf906fd5a2c32ed947c404e41069662d20 (patch) | |
tree | 52609a2310ba57186e52576d4faabdabd02e76f1 /src | |
parent | 8ef3eb9ea314a4edd9971541aa42696e868f8c7d (diff) | |
download | cortex-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.rs | 2 |
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, }) } |