Y
Hacker News
new
|
ask
|
show
|
jobs
by
curun1r
2991 days ago
If you want to cut down on lines, this is equivalent:
let val = do_result().map_err(|e| Box::new(err(e.into())))?;