chore: misc lint suggestion (#12706)

This commit is contained in:
Matthias Seitz
2024-11-20 13:28:47 +01:00
committed by GitHub
parent 402f96600b
commit f9b764f6e8

View File

@ -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())))
}
}