Remove Pin<Box<dyn Future>>
from FromRequest
implementations
#2238
Labels
refactoring
Changes that do not affect our users, mostly focused on maintainability
server
Rust server SDK
At the time of writing
FromRequest::Future
implementations arePin<Box<dyn Future>>
. By hand crafting aFuture
to get a concrete type we should be able to remove this heap allocation. This might involve rewriting https://docs.rs/hyper/latest/hyper/body/fn.to_bytes.html to give it a named type.Support for
async fn
in traits might also be sufficient.The text was updated successfully, but these errors were encountered: