Unnamed repository; edit this file 'description' to name the repository.
fix type error
cameron 2022-04-04
parent 2137bdf · commit bb1c3a2
-rw-r--r--crates/ide_completion/src/render/function.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_completion/src/render/function.rs b/crates/ide_completion/src/render/function.rs
index 6032b28fc6..c0f38a8fcd 100644
--- a/crates/ide_completion/src/render/function.rs
+++ b/crates/ide_completion/src/render/function.rs
@@ -141,7 +141,7 @@ pub(super) fn add_call_parens<'b>(
Some(adt) => adt
.name(ctx.db)
.as_text()
- .map(to_lower_snake_case)
+ .map(|s| to_lower_snake_case(s.as_str()))
.unwrap_or("_".to_string()),
};
f(&format_args!("${{{}:{}}}", index + offset, name))