mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-15 17:05:05 +01:00
clippy
This commit is contained in:
parent
7cc5a75fe2
commit
b3081cfeb9
5 changed files with 9 additions and 9 deletions
|
|
@ -490,7 +490,7 @@ impl ServerChannelsState {
|
|||
/// Send a single data packet.
|
||||
/// The caller needs to ensure the windowing and packet size requirements are upheld.
|
||||
fn send_data_packet(&mut self, channel_number: ChannelNumber, data: &[u8]) {
|
||||
assert!(data.len() > 0, "Trying to send empty data packet");
|
||||
assert!(!data.is_empty(), "Trying to send empty data packet");
|
||||
|
||||
trace!(%channel_number, amount = %data.len(), "Sending channel data");
|
||||
let channel = self.channel(channel_number).unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue