Skip to content

Commit

Permalink
use unreachable!()
Browse files Browse the repository at this point in the history
  • Loading branch information
flub committed Nov 27, 2024
1 parent b64c003 commit f41b75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iroh-relay/src/server/client_conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ impl Stream for RateLimitedRelayedStream {
match delay.poll(cx) {
Poll::Ready(_) => {
match std::mem::replace(&mut self.state, State::Ready) {
State::Ready => continue, // unreachable
State::Ready => unreachable!(),
State::Blocked { item, .. } => {
// Yield the item directly, rate-limit has already been
// accounted for by awaiting the future.
Expand Down

0 comments on commit f41b75b

Please sign in to comment.