Skip to content

Commit

Permalink
chore(router): Allow unreachable patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Aug 24, 2024
1 parent 8d6d46b commit f4fd177
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tonic/src/service/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ impl Future for RoutesFuture {
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
match ready!(Pin::new(&mut self.as_mut().0).poll(cx)) {
Ok(res) => Ok(res.map(boxed)).into(),
// NOTE: This pattern is not needed from Rust 1.82.
// See https://github.com/rust-lang/rust/pull/122792.
#[allow(unreachable_patterns)]
Err(err) => match err {},
}
}
Expand Down

0 comments on commit f4fd177

Please sign in to comment.