Skip to content

Commit 63ac896

Browse files
bors[bot]matklad
andauthored
Merge #5811
5811: Minor r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 529ca7e + 80ea7f3 commit 63ac896

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/ide/src/completion/complete_trait_impl.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ fn add_function_impl(
126126
) {
127127
let fn_name = func.name(ctx.db).to_string();
128128

129-
let label = if !func.params(ctx.db).is_empty() {
130-
format!("fn {}(..)", fn_name)
131-
} else {
129+
let label = if func.params(ctx.db).is_empty() {
132130
format!("fn {}()", fn_name)
131+
} else {
132+
format!("fn {}(..)", fn_name)
133133
};
134134

135135
let builder = CompletionItem::new(CompletionKind::Magic, ctx.source_range(), label)

0 commit comments

Comments
 (0)