use to_string
instead of format!
This commit is contained in:
parent
90ca44752a
commit
29c41280a1
1 changed files with 1 additions and 1 deletions
|
@ -970,7 +970,7 @@ impl<'a> Parser<'a> {
|
||||||
}
|
}
|
||||||
if fixed_crate_name {
|
if fixed_crate_name {
|
||||||
let fixed_name_sp = ident.span.to(idents.last().unwrap().span);
|
let fixed_name_sp = ident.span.to(idents.last().unwrap().span);
|
||||||
let mut fixed_name = format!("{}", ident.name);
|
let mut fixed_name = ident.name.to_string();
|
||||||
for part in idents {
|
for part in idents {
|
||||||
fixed_name.push_str(&format!("_{}", part.name));
|
fixed_name.push_str(&format!("_{}", part.name));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue