Closed joshtriplett closed 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.
box_err
.map_err(box_err)
match
Ran into the opportunity for this simplification while working on another change in this area.
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 fullmatch
statement.Ran into the opportunity for this simplification while working on another change in this area.