From bb1c3a20b502c48b4d0952878f0280e579c8a6f7 Mon Sep 17 00:00:00 2001 From: cameron Date: Mon, 4 Apr 2022 14:30:49 +0100 Subject: [PATCH] fix type error --- crates/ide_completion/src/render/function.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))