mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-16 07:03:57 +00:00
fix type error
This commit is contained in:
parent
2137bdfca3
commit
bb1c3a20b5
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue