mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Make tests pass
This commit is contained in:
parent
4322cf7f5b
commit
8fe73a2240
4 changed files with 7 additions and 4 deletions
|
@ -342,7 +342,8 @@ fn render_resolution_simple_(
|
|||
let ctx = ctx.import_to_add(import_to_add);
|
||||
let kind = res_to_kind(resolution);
|
||||
|
||||
let mut item = CompletionItem::new(kind, ctx.source_range(), local_name.to_smol_str());
|
||||
let mut item =
|
||||
CompletionItem::new(kind, ctx.source_range(), local_name.unescaped().to_smol_str());
|
||||
item.set_relevance(ctx.completion_relevance())
|
||||
.set_documentation(scope_def_docs(db, resolution))
|
||||
.set_deprecated(scope_def_is_deprecated(&ctx, resolution));
|
||||
|
|
|
@ -96,7 +96,7 @@ fn render(
|
|||
item.set_documentation(ctx.docs(func))
|
||||
.set_deprecated(ctx.is_deprecated(func) || ctx.is_deprecated_assoc_item(func))
|
||||
.detail(detail(db, func))
|
||||
.lookup_by(name.to_smol_str());
|
||||
.lookup_by(name.unescaped().to_smol_str());
|
||||
|
||||
match ctx.completion.config.snippet_cap {
|
||||
Some(cap) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue