diff options
author | 2019-10-29 15:45:00 +0100 | |
---|---|---|
committer | 2019-10-29 15:45:00 +0100 | |
commit | b5c24630bdf5a23008885c4771a2d31060f8c180 (patch) | |
tree | d5578ba274055f223d89407f998e6c6dafe650a9 /src/register | |
parent | 3607c6cfd5e7c1635064efbf37939420ea0b9d84 (diff) | |
download | cortex-m-b5c24630bdf5a23008885c4771a2d31060f8c180.tar.gz cortex-m-b5c24630bdf5a23008885c4771a2d31060f8c180.tar.zst cortex-m-b5c24630bdf5a23008885c4771a2d31060f8c180.zip |
Enable the missing_inline_in_public_items clippy lint.
Diffstat (limited to 'src/register')
-rw-r--r-- | src/register/apsr.rs | 1 | ||||
-rw-r--r-- | src/register/control.rs | 4 | ||||
-rw-r--r-- | src/register/faultmask.rs | 1 | ||||
-rw-r--r-- | src/register/primask.rs | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/src/register/apsr.rs b/src/register/apsr.rs index 0e54022..97a9f01 100644 --- a/src/register/apsr.rs +++ b/src/register/apsr.rs @@ -1,6 +1,7 @@ //! Application Program Status Register /// Application Program Status Register +#[allow(clippy::missing_inline_in_public_items)] #[derive(Clone, Copy, Debug)] pub struct Apsr { bits: u32, diff --git a/src/register/control.rs b/src/register/control.rs index ab33029..07b26c3 100644 --- a/src/register/control.rs +++ b/src/register/control.rs @@ -1,6 +1,7 @@ //! Control register /// Control register +#[allow(clippy::missing_inline_in_public_items)] #[derive(Clone, Copy, Debug)] pub struct Control { bits: u32, @@ -81,6 +82,7 @@ impl Control { } /// Thread mode privilege level +#[allow(clippy::missing_inline_in_public_items)] #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum Npriv { /// Privileged @@ -104,6 +106,7 @@ impl Npriv { } /// Currently active stack pointer +#[allow(clippy::missing_inline_in_public_items)] #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum Spsel { /// MSP is the current stack pointer @@ -127,6 +130,7 @@ impl Spsel { } /// Whether context floating-point is currently active +#[allow(clippy::missing_inline_in_public_items)] #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum Fpca { /// Floating-point context active. diff --git a/src/register/faultmask.rs b/src/register/faultmask.rs index 6fa09af..811385f 100644 --- a/src/register/faultmask.rs +++ b/src/register/faultmask.rs @@ -1,6 +1,7 @@ //! Fault Mask Register /// All exceptions are ... +#[allow(clippy::missing_inline_in_public_items)] #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum Faultmask { /// Active diff --git a/src/register/primask.rs b/src/register/primask.rs index 612abc5..018c45b 100644 --- a/src/register/primask.rs +++ b/src/register/primask.rs @@ -1,6 +1,7 @@ //! Priority mask register /// All exceptions with configurable priority are ... +#[allow(clippy::missing_inline_in_public_items)] #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum Primask { /// Active |