From bce67aacba147d707302b1f54ec5b254a5f54059 Mon Sep 17 00:00:00 2001 From: 0x676e67 Date: Fri, 21 Feb 2025 15:21:33 +0800 Subject: [PATCH] fix warning --- examples/connect_via_lower_priority_tokio_runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/connect_via_lower_priority_tokio_runtime.rs b/examples/connect_via_lower_priority_tokio_runtime.rs index 33c15a74..1630aa84 100644 --- a/examples/connect_via_lower_priority_tokio_runtime.rs +++ b/examples/connect_via_lower_priority_tokio_runtime.rs @@ -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,