Skip to content

Commit 3f38d76

Browse files
committed
Remove unnecessary code and fix formatting
1 parent 550638b commit 3f38d76

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

crates/ide-completion/src/item.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,6 @@ impl CompletionItem {
391391
)
392392
})
393393
}
394-
395-
pub fn bump_relevance_by(&mut self, bonus: u32) {
396-
self.relevance.bonus_score += bonus;
397-
}
398394
}
399395

400396
/// A helper to make `CompletionItem`s.

crates/ide-completion/src/render/function.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ pub(super) fn add_call_parens<'b>(
241241

242242
(snippet, "(…)")
243243
};
244-
245244
builder.label(SmolStr::from_iter([&name, label_suffix])).insert_snippet(cap, snippet)
246245
}
247246

@@ -285,7 +284,6 @@ fn detail(db: &dyn HirDatabase, func: hir::Function) -> String {
285284
if !ret_ty.is_unit() {
286285
format_to!(detail, " -> {}", ret_ty.display(db));
287286
}
288-
289287
detail
290288
}
291289

crates/rust-analyzer/src/lsp/to_proto.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ fn completion_item(
349349
if relevance.is_relevant() && relevance.score() == max_relevance {
350350
res.preselect = Some(true);
351351
}
352-
353352
// The relevance needs to be inverted to come up with a sort score
354353
// because the client will sort ascending.
355354
let sort_score = relevance.score() ^ 0xFF_FF_FF_FF;

0 commit comments

Comments
 (0)