Skip to content

Commit

Permalink
lints: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
XOR-op committed Jul 2, 2024
1 parent a333224 commit 1535aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2583,7 +2583,7 @@ impl Socket<'static> {
assert_eq!(enqueued_len, buf.len());
(enqueued_len, replaced_buf.get_allocated(0, enqueued_len))
});
if self.rx_buffer.len() > 0 {
if !self.rx_buffer.is_empty() {
// copy the wrapped around part
self.rx_buffer.dequeue_many_with(|buf| {
let enqueued_len = replaced_buf.enqueue_slice(buf);
Expand Down

0 comments on commit 1535aac

Please sign in to comment.