3 ms·
There are so many nice options here. For the cleanest code, I would use `?` and a `From` impl for the error transformation. If I didn't want to use `From`, I'
by echelon 10y ago
There are so many nice options here.
For the cleanest code, I would use `?` and a `From` impl for the error transformation.
If I didn't want to use `From`, I'd use `map_err`, `and_then`, etc. Both the Result and Option types have wonderful interfaces for chaining.