rustfmt_nightly::macros

Function convert_try_mac

Source
pub(crate) fn convert_try_mac(
    mac: &MacCall,
    context: &RewriteContext<'_>,
) -> Option<Expr>
Expand description

Tries to convert a macro use into a short hand try expression. Returns None when the macro is not an instance of try! (or parsing the inner expression failed).