Skip to content

Updated precompiled files by running cargo xtask assemble

bccd809
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Mark lr::write as deprecated #590

Updated precompiled files by running cargo xtask assemble
bccd809
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Apr 15, 2025 in 3s

clippy

202 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 202
Note 0
Help 0

Versions

  • rustc 1.86.0 (05f9846f8 2025-03-31)
  • cargo 1.86.0 (adf9b6ad1 2025-02-28)
  • clippy 0.1.86 (05f9846f89 2025-03-31)

Annotations

Check warning on line 737 in src/peripheral/scb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

manual slice size calculation

warning: manual slice size calculation
   --> src/peripheral/scb.rs:737:13
    |
737 |             slice.len() * core::mem::size_of::<T>(),
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `core::mem::size_of_val(slice)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_slice_size_calculation

Check warning on line 651 in src/peripheral/scb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

manual slice size calculation

warning: manual slice size calculation
   --> src/peripheral/scb.rs:651:13
    |
651 |             slice.len() * core::mem::size_of::<T>(),
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `core::mem::size_of_val(slice)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_slice_size_calculation
    = note: `#[warn(clippy::manual_slice_size_calculation)]` on by default

Check warning on line 60 in src/itm.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'p

warning: the following explicit lifetimes could be elided: 'p
  --> src/itm.rs:60:6
   |
60 | impl<'p> fmt::Write for Port<'p> {
   |      ^^                      ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
   = note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
   |
60 - impl<'p> fmt::Write for Port<'p> {
60 + impl fmt::Write for Port<'_> {
   |

Check warning on line 23 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

doc list item without indentation

warning: doc list item without indentation
  --> src/lib.rs:23:5
   |
23 | //! API docs for details.
   |     ^
   |
   = help: if this is supposed to be its own paragraph, add a blank line
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
   |
23 | //!   API docs for details.
   |     ++

Check warning on line 20 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

doc list item without indentation

warning: doc list item without indentation
  --> src/lib.rs:20:5
   |
20 | //! function call overhead when `inline-asm` is not enabled.
   |     ^
   |
   = help: if this is supposed to be its own paragraph, add a blank line
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
   = note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: indent this line
   |
20 | //!   function call overhead when `inline-asm` is not enabled.
   |     ++

Check warning on line 28 in src/register/msp.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv8m`

warning: unexpected `cfg` condition name: `armv8m`
  --> src/register/msp.rs:28:7
   |
28 | #[cfg(armv8m)]
   |       ^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv8m)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv8m)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 19 in src/register/msp.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv8m`

warning: unexpected `cfg` condition name: `armv8m`
  --> src/register/msp.rs:19:7
   |
19 | #[cfg(armv8m)]
   |       ^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv8m)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv8m)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 56 in src/register/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv8m_main`

warning: unexpected `cfg` condition name: `armv8m_main`
  --> src/register/mod.rs:56:7
   |
56 | #[cfg(armv8m_main)]
   |       ^^^^^^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv8m_main)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv8m_main)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 53 in src/register/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv8m_main`

warning: unexpected `cfg` condition name: `armv8m_main`
  --> src/register/mod.rs:53:7
   |
53 | #[cfg(armv8m_main)]
   |       ^^^^^^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv8m_main)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv8m_main)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 44 in src/register/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `has_fpu`

warning: unexpected `cfg` condition name: `has_fpu`
  --> src/register/mod.rs:44:7
   |
44 | #[cfg(has_fpu)]
   |       ^^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(has_fpu)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(has_fpu)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 41 in src/register/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv8m_base`

warning: unexpected `cfg` condition name: `armv8m_base`
  --> src/register/mod.rs:41:28
   |
41 | #[cfg(all(not(armv6m), not(armv8m_base)))]
   |                            ^^^^^^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv8m_base)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv8m_base)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 41 in src/register/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv6m`

warning: unexpected `cfg` condition name: `armv6m`
  --> src/register/mod.rs:41:15
   |
41 | #[cfg(all(not(armv6m), not(armv8m_base)))]
   |               ^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv6m)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv6m)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 36 in src/register/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv8m_base`

warning: unexpected `cfg` condition name: `armv8m_base`
  --> src/register/mod.rs:36:28
   |
36 | #[cfg(all(not(armv6m), not(armv8m_base)))]
   |                            ^^^^^^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv8m_base)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv8m_base)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 36 in src/register/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv6m`

warning: unexpected `cfg` condition name: `armv6m`
  --> src/register/mod.rs:36:15
   |
36 | #[cfg(all(not(armv6m), not(armv8m_base)))]
   |               ^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv6m)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv6m)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 33 in src/register/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv8m_base`

warning: unexpected `cfg` condition name: `armv8m_base`
  --> src/register/mod.rs:33:28
   |
33 | #[cfg(all(not(armv6m), not(armv8m_base)))]
   |                            ^^^^^^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv8m_base)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv8m_base)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 33 in src/register/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv6m`

warning: unexpected `cfg` condition name: `armv6m`
  --> src/register/mod.rs:33:15
   |
33 | #[cfg(all(not(armv6m), not(armv8m_base)))]
   |               ^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv6m)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv6m)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 183 in src/peripheral/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `cm7`

warning: unexpected `cfg` condition name: `cm7`
   --> src/peripheral/mod.rs:183:19
    |
183 |             #[cfg(cm7)]
    |                   ^^^ help: found config with similar value: `feature = "cm7"`
    |
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(cm7)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(cm7)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 99 in src/peripheral/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `cm7`

warning: unexpected `cfg` condition name: `cm7`
  --> src/peripheral/mod.rs:99:11
   |
99 |     #[cfg(cm7)]
   |           ^^^ help: found config with similar value: `feature = "cm7"`
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(cm7)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(cm7)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 1026 in src/peripheral/scb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv8m_main`

warning: unexpected `cfg` condition name: `armv8m_main`
    --> src/peripheral/scb.rs:1026:19
     |
1026 |             #[cfg(armv8m_main)]
     |                   ^^^^^^^^^^^
     |
     = help: consider using a Cargo feature instead
     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
              [lints.rust]
              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv8m_main)'] }
     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv8m_main)");` to the top of the `build.rs`
     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 1000 in src/peripheral/scb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv6m`

warning: unexpected `cfg` condition name: `armv6m`
    --> src/peripheral/scb.rs:1000:15
     |
1000 |         #[cfg(armv6m)]
     |               ^^^^^^
     |
     = help: consider using a Cargo feature instead
     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
              [lints.rust]
              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv6m)'] }
     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv6m)");` to the top of the `build.rs`
     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 991 in src/peripheral/scb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv6m`

warning: unexpected `cfg` condition name: `armv6m`
   --> src/peripheral/scb.rs:991:19
    |
991 |         #[cfg(not(armv6m))]
    |                   ^^^^^^
    |
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv6m)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv6m)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 957 in src/peripheral/scb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv6m`

warning: unexpected `cfg` condition name: `armv6m`
   --> src/peripheral/scb.rs:957:15
    |
957 |         #[cfg(armv6m)]
    |               ^^^^^^
    |
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv6m)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv6m)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 946 in src/peripheral/scb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv6m`

warning: unexpected `cfg` condition name: `armv6m`
   --> src/peripheral/scb.rs:946:19
    |
946 |         #[cfg(not(armv6m))]
    |                   ^^^^^^
    |
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv6m)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv6m)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 1084 in src/peripheral/scb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv8m_base`

warning: unexpected `cfg` condition name: `armv8m_base`
    --> src/peripheral/scb.rs:1084:27
     |
1084 |     #[cfg(not(any(armv6m, armv8m_base)))]
     |                           ^^^^^^^^^^^
     |
     = help: consider using a Cargo feature instead
     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
              [lints.rust]
              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv8m_base)'] }
     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv8m_base)");` to the top of the `build.rs`
     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check warning on line 1084 in src/peripheral/scb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition name: `armv6m`

warning: unexpected `cfg` condition name: `armv6m`
    --> src/peripheral/scb.rs:1084:19
     |
1084 |     #[cfg(not(any(armv6m, armv8m_base)))]
     |                   ^^^^^^
     |
     = help: consider using a Cargo feature instead
     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
              [lints.rust]
              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(armv6m)'] }
     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(armv6m)");` to the top of the `build.rs`
     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration