CordlessCoder
CordlessCoder
A quick pass over the whole codebase looking for iterators that are .collect()-ed unnecessarily, or where type inference can get rid of the turbofish. I formatted my code with cargo...
- get* methods conjure 'static references that can be held beyond the lifetime of the list, which is unsound - get* methods take a mutable reference, which is unnecessary -...
Every async software task gets an `AsyncTaskExecutor`, and `#[app]` puts it in `main`'s frame as a `ManuallyDrop` local. Each one is published to a `static AsyncTaskExecutorPtr` so the dispatchers and...
I suggest replacing the custom timing code and print statements with an indicatif-based Statusbar - [ ] Statusbar for loading & processing themes - [x] Statusbar for processing each image
https://github.com/probe-rs/probe-rs/blob/661d0752513a0301864c21079e413d8439820cd0/probe-rs/src/flashing/download.rs#L130-L131 It's the only field on DownloadOptions that the flashing code never reads, and it's also absent from the RPC DownloadOptions. https://github.com/probe-rs/probe-rs/blob/661d0752513a0301864c21079e413d8439820cd0/probe-rs-rpc/src/flash.rs#L8-L16 The behavior it documents exists, but it's implemented...
https://github.com/probe-rs/probe-rs/blob/661d0752513a0301864c21079e413d8439820cd0/probe-rs/src/architecture/arm/core/registers/cortex_m.rs#L172-L179 `CORTEX_M_CORE_REGISTERS` is shared across the Cortex-M implementations. On ARMv6-M that layout is wrong. ARM DDI 0419E table C1-14 gives DCRSR REGSEL `0b10100` as CONTROL in [31:24], Reserved in [23:8],...