mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00: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