Skip to content

Commit 652b132

Browse files
committed
Refactor render.rs and function.rs
1 parent bd062c7 commit 652b132

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

crates/ide-completion/src/render.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,10 +2054,6 @@ fn test() {
20542054
let a = A::$0;
20552055
}
20562056
"#,
2057-
// preference:
2058-
// fn with no param that returns itself
2059-
// builder like fn
2060-
// fn with param that returns itself
20612057
expect![[r#"
20622058
fn new_2() [type_could_unify]
20632059
fn aaaabuilder() [type_could_unify]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ fn render(
156156

157157
/// When typing `::` of a type, the preferred order is:
158158
/// * Constructors: new like functions to be able to create the type,
159+
/// * Builder Methods,
159160
/// * Constructors that take args: Any other function that creates Self
160-
/// * Builder Methods: any builder methods available
161161
/// * Regular methods & Associated functions
162162
///
163163
fn calculate_bonus(ctx: &RenderContext<'_>, func: hir::Function, db: &dyn HirDatabase) -> u32 {

0 commit comments

Comments
 (0)