clippy_utils

Function is_try

source
pub fn is_try<'tcx>(
    cx: &LateContext<'_>,
    expr: &'tcx Expr<'tcx>,
) -> Option<&'tcx Expr<'tcx>>
Expand description

Checks if a given expression is a match expression expanded from the ? operator or the try macro.