[PR Feedback] Replace closure with function
@@ -46,7 +46,7 @@ impl<T> Future for SpawnedFuture<T> {
fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
match self {
- SpawnedFuture::Ok(r) => r.poll().map_err(|e| e.into()),
+ SpawnedFuture::Ok(r) => r.poll().map_err(Into::into),
SpawnedFuture::Err(e) => Err(e
.take()
.expect("Cannot poll SpawnedFuture::Err twice")
