Skip to content

Commit

Permalink
ci: apply clippy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
de-sh committed Mar 25, 2024
1 parent f869eae commit 7940002
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rumqttd/src/router/iobufs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@ impl Outgoing {
// But we don't support out of order / unsolicited pubcomps
// to be consistent with the behaviour with other acks
pub fn register_pubcomp(&mut self, pkid: u16) -> Option<()> {
let Some(id) = self.unacked_pubrels.pop_front() else {
return None;
};
let id = self.unacked_pubrels.pop_front()?;

// out of order acks
if pkid != id {
Expand Down

0 comments on commit 7940002

Please sign in to comment.