Some(p) => (p.unescaped().to_string(), p.to_string()),
None => (name.unescaped().to_string(), name.to_string()),
};
- let label = format_literal_label(&name.to_smol_str(), StructKind::Record);
+ let label = format_literal_label(&name.to_smol_str(), StructKind::Record, ctx.snippet_cap());
let lookup = format_literal_lookup(&name.to_smol_str(), StructKind::Record);
let mut item = CompletionItem::new(
CompletionItemKind::SymbolKind(SymbolKind::Union),
item.set_documentation(ctx.docs(un))
.set_deprecated(ctx.is_deprecated(un))
- .detail(&detail)
+ .detail(detail)
.set_relevance(ctx.completion_relevance());
match ctx.snippet_cap() {