From: Thomas Karpiniec Date: Wed, 4 Jun 2025 10:45:26 +0000 (+1000) Subject: Update crates to 2024 edition X-Git-Url: https://code.octet-stream.net/m17rt/commitdiff_plain/88edf8d799f54677410580f24b98c47597513f46?ds=inline Update crates to 2024 edition --- diff --git a/m17app/Cargo.toml b/m17app/Cargo.toml index 4c2817f..5a0e621 100644 --- a/m17app/Cargo.toml +++ b/m17app/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "m17app" version = "0.1.0" -edition = "2021" +edition = "2024" keywords = ["amateur", "radio", "m17", "ham"] license = "MIT" authors = ["Thomas Karpiniec { match &mut self.state { - State::RxPacket(ref mut rx) => { + State::RxPacket(rx) => { match packet.counter { PacketFrameCounter::Frame { index } => { if index == rx.count && index < 32 { @@ -164,7 +164,7 @@ impl SoftTnc { } Frame::Stream(stream) => { match &mut self.state { - State::RxStream(ref mut rx) => { + State::RxStream(rx) => { // TODO: consider wraparound from 0x7fff if stream.frame_number < rx.index { let mut lich = LichCollection::new(); @@ -181,7 +181,7 @@ impl SoftTnc { } } } - State::RxAcquiringStream(ref mut rx) => { + State::RxAcquiringStream(rx) => { rx.lich.set_segment(stream.lich_idx, stream.lich_part); if let Some(maybe_lsf) = rx.lich.try_assemble() { let lsf = LsfFrame(maybe_lsf); diff --git a/tools/m17rt-demod/Cargo.toml b/tools/m17rt-demod/Cargo.toml index b4c091d..6e60d4a 100644 --- a/tools/m17rt-demod/Cargo.toml +++ b/tools/m17rt-demod/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "m17rt-demod" version = "0.1.0" -edition = "2021" +edition = "2024" license = "MIT" authors = ["Thomas Karpiniec