Remove unnecessary sigils around Ident::as_str()
calls.
This commit is contained in:
parent
056d48a2c9
commit
b1c934ebb8
31 changed files with 41 additions and 42 deletions
|
@ -616,7 +616,7 @@ impl<'hir> Sig for hir::Generics<'hir> {
|
|||
if let hir::GenericParamKind::Const { .. } = param.kind {
|
||||
param_text.push_str("const ");
|
||||
}
|
||||
param_text.push_str(¶m.name.ident().as_str());
|
||||
param_text.push_str(param.name.ident().as_str());
|
||||
defs.push(SigElement {
|
||||
id: id_from_hir_id(param.hir_id, scx),
|
||||
start: offset + text.len(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue