Skip to content

Commit 37d2a82

Browse files
cameron1024Veykril
andauthored
Update crates/ide_completion/src/render/function.rs
Co-authored-by: Lukas Wirth <[email protected]>
1 parent bb1c3a2 commit 37d2a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide_completion/src/render/function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub(super) fn add_call_parens<'b>(
142142
.name(ctx.db)
143143
.as_text()
144144
.map(|s| to_lower_snake_case(s.as_str()))
145-
.unwrap_or("_".to_string()),
145+
.unwrap_or_else(|| "_".to_string()),
146146
};
147147
f(&format_args!("${{{}:{}}}", index + offset, name))
148148
}

0 commit comments

Comments
 (0)