4 ms·
It's more like let v = match x { Ok(o) => o, Err(e) => return Err(e.into()), }; > That feels like something that could be done with a macro. Ind
by estebank 5y ago
It's more like
let v = match x {
Ok(o) => o,
Err(e) => return Err(e.into()),
};
> That feels like something that could be done with a macro.
Indeed. It used to be a macro called try!.
- dgellow 5y agoAh, thanks for the correction, that's better yes