clippy_utils::macros

Function find_format_arg_expr

Source
pub fn find_format_arg_expr<'hir>(
    start: &'hir Expr<'hir>,
    target: &FormatArgument,
) -> Option<&'hir Expr<'hir>>
Expand description

Attempt to find the rustc_hir::Expr that corresponds to the FormatArgument’s value