Closed Fishrock123 closed 4 years ago
Same as https://github.com/http-rs/tide/pull/639
This change does not actually alter the output code, but hides the use of Pin<Box<dyn Future<Output = T> + Send>> behind async_trait
Pin<Box<dyn Future<Output = T> + Send>>
This simplifies middleware struct definitions.
This also removes futures in favor of futures_util.
futures
futures_util
Same as https://github.com/http-rs/tide/pull/639
This simplifies middleware struct definitions.
This also removes
futures
in favor offutures_util
.