FlorianUekermann / rustls-acme

Apache License 2.0
136 stars 27 forks source link

Simplify `BoxedErrCache` using `map_err` #21

Closed joshtriplett closed 2 years ago

joshtriplett commented 2 years ago

Add a helper function box_err to avoid having to add a type signature to each closure, then use .map_err(box_err) rather than a full match statement.

Ran into the opportunity for this simplification while working on another change in this area.