Hacker News new | ask | show | jobs
by yarper 3400 days ago
for 1. there's map_err(..) which accepts a closure

e.g.

`try!(foo().map_err(|e| format!("{}", e.thing)));`

1 comments

That's what I'm doing right now all over the place and I hate the boiler plate.
ah, fair enough!