diff options
author | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2023-10-11 18:25:40 +0800 |
---|---|---|
committer | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2023-10-11 19:12:37 +0800 |
commit | 3703c676f2c1fc70f415fb7c1bf92fda2bd87024 (patch) | |
tree | 4e0613fdf5c5b358b2174266a3be1c35ff7c9dfa /src | |
parent | 94ada5db8a8d82194a7f1dd05694fc4e2a8fc78b (diff) |
Fix clippy complaints
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/fakes/fake_input.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/fakes/fake_input.rs b/src/tests/fakes/fake_input.rs index 27b5c5e..f267b48 100644 --- a/src/tests/fakes/fake_input.rs +++ b/src/tests/fakes/fake_input.rs @@ -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(&[]) } } } |