mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-15 08:23:26 +00:00
fix type error
This commit is contained in:
parent
2137bdfca3
commit
bb1c3a20b5
@ -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 New Issue
Block a user