X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/1a444762d8fd7d48e4f56a87c6bd77f837522d5d..bc6fb90d7053082e7aaf261f4da8905c49e9fe01:/m17app/src/adapter.rs?ds=inline diff --git a/m17app/src/adapter.rs b/m17app/src/adapter.rs index 57e01bb..8fdf9d9 100644 --- a/m17app/src/adapter.rs +++ b/m17app/src/adapter.rs @@ -3,26 +3,36 @@ use m17core::protocol::PacketType; use std::sync::Arc; pub trait PacketAdapter: Send + Sync + 'static { - fn adapter_registered(&self, _id: usize, _handle: TxHandle) {} + fn adapter_registered(&self, id: usize, handle: TxHandle) { + let _ = id; + let _ = handle; + } fn adapter_removed(&self) {} fn tnc_started(&self) {} fn tnc_closed(&self) {} - fn packet_received( - &self, - _link_setup: LinkSetup, - _packet_type: PacketType, - _content: Arc<[u8]>, - ) { + fn packet_received(&self, link_setup: LinkSetup, packet_type: PacketType, content: Arc<[u8]>) { + let _ = link_setup; + let _ = packet_type; + let _ = content; } } pub trait StreamAdapter: Send + Sync + 'static { - fn adapter_registered(&self, _id: usize, _handle: TxHandle) {} + fn adapter_registered(&self, id: usize, handle: TxHandle) { + let _ = id; + let _ = handle; + } fn adapter_removed(&self) {} fn tnc_started(&self) {} fn tnc_closed(&self) {} - fn stream_began(&self, _link_setup: LinkSetup) {} - fn stream_data(&self, _frame_number: u16, _is_final: bool, _data: Arc<[u8; 16]>) {} + fn stream_began(&self, link_setup: LinkSetup) { + let _ = link_setup; + } + fn stream_data(&self, frame_number: u16, is_final: bool, data: Arc<[u8; 16]>) { + let _ = frame_number; + let _ = is_final; + let _ = data; + } // TODO // fn stream_lost(&self);