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.