fix clippy
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit

This commit is contained in:
Robin Müller 2023-09-18 14:57:27 +02:00
parent d42999d2ad
commit 54bc37b086
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -15,18 +15,14 @@ pub trait ApidLookup {
/// The parser will write all packets which were decoded successfully to the given `tc_receiver`.
pub fn parse_buffer_for_ccsds_space_packets<E>(
buf: &mut [u8],
apid_lookup: &dyn ApidLookup,
tc_receiver: &mut dyn ReceivesTc<Error = E>,
next_write_idx: &mut usize,
_apid_lookup: &dyn ApidLookup,
_tc_receiver: &mut dyn ReceivesTc<Error = E>,
_next_write_idx: &mut usize,
) -> Result<u32, E> {
let mut start_index_packet = 0;
let mut start_found = false;
let mut last_byte = false;
let mut packets_found = 0;
for i in 0..buf.len() {
let packets_found = 0;
for _ in 0..buf.len() {
todo!();
}
// Split frame at the end for a multi-packet frame. Move it to the front of the buffer.
if start_index_packet > 0 && start_found && packets_found > 0 {}
Ok(packets_found)
}