Skip to content

Commit d4cbf07

Browse files
Merge #313
313: Remove excessive #[allow(clippy::missing_inline_in_public_items)] r=adamgreig a=jonas-schievink Closes #179 Co-authored-by: Jonas Schievink <[email protected]>
2 parents 86cd463 + c828dd9 commit d4cbf07

File tree

9 files changed

+0
-17
lines changed

9 files changed

+0
-17
lines changed

src/cmse.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ use bitfield::bitfield;
3737

3838
/// Memory access behaviour: determine which privilege execution mode is used and which Memory
3939
/// Protection Unit (MPU) is used.
40-
#[allow(clippy::missing_inline_in_public_items)]
4140
#[derive(PartialEq, Copy, Clone, Debug)]
4241
pub enum AccessType {
4342
/// Access using current privilege level and reading from current security state MPU.
@@ -55,7 +54,6 @@ pub enum AccessType {
5554

5655
/// Abstraction of TT instructions and helper functions to determine the security and privilege
5756
/// attribute of a target address, accessed in different ways.
58-
#[allow(clippy::missing_inline_in_public_items)]
5957
#[derive(PartialEq, Copy, Clone, Debug)]
6058
pub struct TestTarget {
6159
tt_resp: TtResp,

src/peripheral/cpuid.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ pub struct RegisterBlock {
6666

6767
/// Type of cache to select on CSSELR writes.
6868
#[cfg(not(armv6m))]
69-
#[allow(clippy::missing_inline_in_public_items)]
7069
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
7170
pub enum CsselrCacheType {
7271
/// Select DCache or unified cache

src/peripheral/scb.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ pub struct RegisterBlock {
9797

9898
/// FPU access mode
9999
#[cfg(has_fpu)]
100-
#[allow(clippy::missing_inline_in_public_items)]
101100
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
102101
pub enum FpuAccessMode {
103102
/// FPU is not accessible
@@ -194,7 +193,6 @@ impl SCB {
194193
}
195194

196195
/// Processor core exceptions (internal interrupts)
197-
#[allow(clippy::missing_inline_in_public_items)]
198196
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
199197
pub enum Exception {
200198
/// Non maskable interrupt
@@ -260,7 +258,6 @@ impl Exception {
260258
}
261259

262260
/// Active exception number
263-
#[allow(clippy::missing_inline_in_public_items)]
264261
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
265262
pub enum VectActive {
266263
/// Thread mode
@@ -913,7 +910,6 @@ impl SCB {
913910
}
914911

915912
/// System handlers, exceptions with configurable priority
916-
#[allow(clippy::missing_inline_in_public_items)]
917913
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
918914
#[repr(u8)]
919915
pub enum SystemHandler {

src/peripheral/syst.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ pub struct RegisterBlock {
1818
}
1919

2020
/// SysTick clock source
21-
#[allow(clippy::missing_inline_in_public_items)]
2221
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
2322
pub enum SystClkSource {
2423
/// Core-provided clock

src/register/apsr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Application Program Status Register
22
33
/// Application Program Status Register
4-
#[allow(clippy::missing_inline_in_public_items)]
54
#[derive(Clone, Copy, Debug)]
65
pub struct Apsr {
76
bits: u32,

src/register/control.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Control register
22
33
/// Control register
4-
#[allow(clippy::missing_inline_in_public_items)]
54
#[derive(Clone, Copy, Debug)]
65
pub struct Control {
76
bits: u32,
@@ -82,7 +81,6 @@ impl Control {
8281
}
8382

8483
/// Thread mode privilege level
85-
#[allow(clippy::missing_inline_in_public_items)]
8684
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
8785
pub enum Npriv {
8886
/// Privileged
@@ -106,7 +104,6 @@ impl Npriv {
106104
}
107105

108106
/// Currently active stack pointer
109-
#[allow(clippy::missing_inline_in_public_items)]
110107
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
111108
pub enum Spsel {
112109
/// MSP is the current stack pointer
@@ -130,7 +127,6 @@ impl Spsel {
130127
}
131128

132129
/// Whether context floating-point is currently active
133-
#[allow(clippy::missing_inline_in_public_items)]
134130
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
135131
pub enum Fpca {
136132
/// Floating-point context active.

src/register/faultmask.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Fault Mask Register
22
33
/// All exceptions are ...
4-
#[allow(clippy::missing_inline_in_public_items)]
54
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
65
pub enum Faultmask {
76
/// Active

src/register/fpscr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Floating-point Status Control Register
22
33
/// Floating-point Status Control Register
4-
#[allow(clippy::missing_inline_in_public_items)]
54
#[derive(Clone, Copy, Debug)]
65
pub struct Fpscr {
76
bits: u32,
@@ -253,7 +252,6 @@ impl Fpscr {
253252
}
254253

255254
/// Rounding mode
256-
#[allow(clippy::missing_inline_in_public_items)]
257255
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
258256
pub enum RMode {
259257
/// Round to Nearest (RN) mode. This is the reset value.

src/register/primask.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Priority mask register
22
33
/// All exceptions with configurable priority are ...
4-
#[allow(clippy::missing_inline_in_public_items)]
54
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
65
pub enum Primask {
76
/// Active

0 commit comments

Comments
 (0)