Skip to content

Commit 2ed92ac

Browse files
committed
refactor(proto): allow unreachable pattern for now
1 parent 60e5088 commit 2ed92ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/proto/h2/client.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,9 @@ where
722722
}
723723

724724
Poll::Pending => match ready!(Pin::new(&mut self.conn_eof).poll(cx)) {
725+
// As of Rust 1.82, this pattern is no longer needed, and emits a waring.
726+
// But we cannot remove it as long as MSRV is less than that.
727+
#[allow(unused)]
725728
Ok(never) => match never {},
726729
Err(_conn_is_eof) => {
727730
trace!("connection task is closed, closing dispatch task");

0 commit comments

Comments
 (0)