Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eupn committed Jun 30, 2021
1 parent 43656b0 commit 7a8df99
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -894,17 +894,14 @@ mod test {

let len = log.retrieve_frames(&mut storage, &mut read_data).unwrap();

let mut num_frames_read = 0;
for (i, frame) in read_data[..len]
for frame in read_data[..len]
.split_mut(|b| *b == COBS_SENTINEL_BYTE)
.filter(|f| f.len() >= 1)
.enumerate()
{
for b in frame.iter_mut() {
*b ^= 0xFF;
}

let frame = rzcobs::decode(frame).unwrap();
rzcobs::decode(frame).unwrap();
}
}

Expand Down

0 comments on commit 7a8df99

Please sign in to comment.