Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Sep 27, 2024
1 parent a4d1ef2 commit 75c1de2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neqo-transport/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ impl Server {
) -> Output<&'a [u8]> {
assert!(out.is_empty());

#[allow(clippy::option_if_let_else)]
let output = if let Some(dgram) = dgram {
self.process_input(
dgram,
Expand All @@ -500,6 +501,7 @@ impl Server {
Output::None
};

#[allow(clippy::option_if_let_else)]
let output = if let Output::None = output {
self.process_next_output(now, out)
} else {
Expand Down

0 comments on commit 75c1de2

Please sign in to comment.