some clippy fixes

This commit is contained in:
2025-01-10 17:19:28 +01:00
parent cf55fe1504
commit f438e7e40f
6 changed files with 17 additions and 14 deletions

View File

@ -35,6 +35,8 @@ features = ["critical-section"]
[dependencies.ringbuf]
version = "0.4.7"
default-features = false
git = "https://github.com/robamu/ringbuf.git"
branch = "remove-mut-on-split-ref"
features = ["portable-atomic"]
[dependencies.va108xx-hal]

View File

@ -12,7 +12,7 @@ use ringbuf::StaticRb;
const RX_RING_BUF_SIZE: usize = 1024;
// Ring buffers to handling variable sized telemetry
static mut RINGBUF: Lazy<StaticRb<u8, RX_RING_BUF_SIZE>> =
static RINGBUF: Lazy<StaticRb<u8, RX_RING_BUF_SIZE>> =
Lazy::new(StaticRb::<u8, RX_RING_BUF_SIZE>::default);
#[rtic::app(device = pac, dispatchers = [OC4])]
@ -71,7 +71,7 @@ mod app {
rx.start();
let (data_producer, data_consumer) = unsafe { RINGBUF.split_ref() };
let (data_producer, data_consumer) = RINGBUF.split_ref();
echo_handler::spawn().unwrap();
(
Shared {},