clippy_utils

Function peel_n_hir_expr_refs

source
pub fn peel_n_hir_expr_refs<'a>(
    expr: &'a Expr<'a>,
    count: usize,
) -> (&'a Expr<'a>, usize)
Expand description

Peels off up to the given number of references on the expression. Returns the underlying expression and the number of references removed.