mirror of
https://github.com/imsnif/bandwhich.git
synced 2026-02-09 01:59:18 +08:00
Fix clippy complaints
This commit is contained in:
@@ -72,15 +72,15 @@ impl DataLinkReceiver for NetworkFrames {
|
||||
if self.current_index < self.packets.len() {
|
||||
let action = self.next_packet();
|
||||
match action {
|
||||
Some(packet) => Ok(&packet[..]),
|
||||
Some(packet) => Ok(packet),
|
||||
None => {
|
||||
thread::sleep(time::Duration::from_secs(1));
|
||||
Ok(&[][..])
|
||||
Ok(&[])
|
||||
}
|
||||
}
|
||||
} else {
|
||||
thread::sleep(time::Duration::from_secs(1));
|
||||
Ok(&[][..])
|
||||
Ok(&[])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user