Update for new pac #1475
Annotations
10 errors and 1 warning
unused import: `cortex_m::peripheral::DWT`:
src/time.rs#L10
error: unused import: `cortex_m::peripheral::DWT`
--> src/time.rs:10:5
|
10 | use cortex_m::peripheral::DWT;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/dma/dma.rs#L345
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/dma/dma.rs:345:9
|
345 | &(*I::ptr()).st(S as usize)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*I::ptr()).st(S as usize)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/dma/dma.rs#L349
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/dma/dma.rs:349:9
|
349 | &dmamux.ccr(S as usize + I::DMA_MUX_STREAM_OFFSET)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `dmamux.ccr(S as usize + I::DMA_MUX_STREAM_OFFSET)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/dma/bdma.rs#L268
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/dma/bdma.rs:268:9
|
268 | &(*I::ptr()).ch(S as usize)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*I::ptr()).ch(S as usize)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/dma/bdma.rs#L272
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/dma/bdma.rs:272:9
|
272 | &dmamux.ccr(S as usize + I::DMA_MUX_STREAM_OFFSET)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `dmamux.ccr(S as usize + I::DMA_MUX_STREAM_OFFSET)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
doc list item missing indentation:
src/dma/mod.rs#L995
error: doc list item missing indentation
--> src/dma/mod.rs:995:9
|
995 | /// source is a peripheral
| ^
|
= 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: `-D clippy::doc-lazy-continuation` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::doc_lazy_continuation)]`
help: indent this line
|
995 | /// source is a peripheral
| ++
|
doc list item missing indentation:
src/dma/mod.rs#L997
error: doc list item missing indentation
--> src/dma/mod.rs:997:9
|
997 | /// destination is a peripheral
| ^
|
= 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
|
997 | /// destination is a peripheral
| ++
|
doc list item missing indentation:
src/dma/mod.rs#L1055
error: doc list item missing indentation
--> src/dma/mod.rs:1055:9
|
1055 | /// argument is `None`.
| ^
|
= 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
|
1055 | /// argument is `None`.
| ++
|
doc list item missing indentation:
src/dma/mod.rs#L1060
error: doc list item missing indentation
--> src/dma/mod.rs:1060:9
|
1060 | /// source size.
| ^
|
= 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
|
1060 | /// source size.
| ++
|
doc list item missing indentation:
src/dma/mod.rs#L1063
error: doc list item missing indentation
--> src/dma/mod.rs:1063:9
|
1063 | /// the destination size.
| ^
|
= 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
|
1063 | /// the destination size.
| ++
|
clippy_check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|