mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
chore: misc lint suggestion (#12706)
This commit is contained in:
@@ -23,10 +23,7 @@ where
|
||||
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
|
||||
let this = self.project();
|
||||
|
||||
this.receiver.poll(cx).map(|r| match r {
|
||||
Ok(r) => r,
|
||||
Err(err) => Err(err.into()),
|
||||
})
|
||||
this.receiver.poll(cx).map(|r| r.unwrap_or_else(|err| Err(err.into())))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user