mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
pass snippet_cap
to format_literal_label
, return early if None
This commit is contained in:
parent
1116cc93ec
commit
694ae77bf6
4 changed files with 12 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue