Remove redundant to_ident_string calls
This commit is contained in:
parent
ac1c6c50f4
commit
c08624d8d2
10 changed files with 14 additions and 18 deletions
|
@ -495,7 +495,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
|
|||
.iter()
|
||||
.any(|constraint| constraint.ident.name == item.name)
|
||||
})
|
||||
.map(|item| item.name.to_ident_string())
|
||||
.map(|item| self.tcx.item_ident(item.def_id).to_string())
|
||||
.collect()
|
||||
} else {
|
||||
Vec::default()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue