Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
0x676e67 committed Feb 21, 2025
1 parent d21bf8b commit bce67aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/connect_via_lower_priority_tokio_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ mod background_threadpool {
// now poll on the receiver end of the oneshot to get the result
match this.rx.poll(cx) {
Poll::Ready(v) => match v {
Ok(v) => Poll::Ready(v.map_err(Into::into)),
Ok(v) => Poll::Ready(v),
Err(err) => Poll::Ready(Err(Box::new(err) as BoxError)),
},
Poll::Pending => Poll::Pending,
Expand Down

0 comments on commit bce67aa

Please sign in to comment.