mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Fix some clippy lints in ide_completion
This commit is contained in:
parent
ccde0bcd1f
commit
9485d6efba
10 changed files with 34 additions and 41 deletions
|
@ -322,8 +322,8 @@ fn postfix_snippet(
|
|||
let mut item = CompletionItem::new(CompletionKind::Postfix, ctx.source_range(), label);
|
||||
item.detail(detail).kind(CompletionItemKind::Snippet).snippet_edit(cap, edit);
|
||||
if ctx.original_token.text() == label {
|
||||
let mut relevance = CompletionRelevance::default();
|
||||
relevance.exact_postfix_snippet_match = true;
|
||||
let relevance =
|
||||
CompletionRelevance { exact_postfix_snippet_match: true, ..Default::default() };
|
||||
item.set_relevance(relevance);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue