axum::routing::Router and other server impls using tower, often want Infallible services.
This PR brings .make_infallible(err_to_ok_fn) to any Service to fit Service<.., Error = Infallible>.
I often need this boilerplate when gluing together a server so I thought opening a PR.
Please let me know, if this is a good idea and if so, I will work on the documentation.
axum::routing::Router
and other server impls usingtower
, often wantInfallible
services.This PR brings
.make_infallible(err_to_ok_fn)
to anyService
to fitService<.., Error = Infallible>
. I often need this boilerplate when gluing together a server so I thought opening a PR.Please let me know, if this is a good idea and if so, I will work on the documentation.