pass snippet_cap to format_literal_label, return early if None

This commit is contained in:
Brent Westbrook 2022-12-20 11:27:19 -05:00
parent 1116cc93ec
commit 694ae77bf6
4 changed files with 12 additions and 5 deletions

View file

@ -96,7 +96,7 @@ fn render(
if !should_add_parens {
kind = StructKind::Unit;
}
let label = format_literal_label(&qualified_name, kind);
let label = format_literal_label(&qualified_name, kind, snippet_cap);
let lookup = if qualified {
format_literal_lookup(&short_qualified_name.to_string(), kind)
} else {