clippy_utils::macros

Function format_arg_removal_span

Source
pub fn format_arg_removal_span(
    format_args: &FormatArgs,
    index: usize,
) -> Option<Span>
Expand description

Returns the Span of the value at index extended to the previous comma, e.g. for the value 10

format("{}.{}", 10, 11)
//            ^^^^