Skip to content

Commit

Permalink
style(clippy): resolve clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
BobAnkh committed Jan 12, 2025
1 parent c1773db commit 3901dfc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rattan-core/src/cells/bandwidth/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,8 @@ where
self.queue.push_back(packet);
while self
.packet_limit
.map_or(false, |limit| self.queue.len() > limit)
|| self
.byte_limit
.map_or(false, |limit| self.now_bytes > limit)
.is_some_and(|limit| self.queue.len() > limit)
|| self.byte_limit.is_some_and(|limit| self.now_bytes > limit)
{
let packet = self.dequeue().unwrap();
trace!(
Expand Down

0 comments on commit 3901dfc

Please sign in to comment.