avoid .into() conversion to identical types
This commit is contained in:
parent
35a99eef32
commit
0aa4cde747
11 changed files with 17 additions and 27 deletions
|
@ -83,7 +83,6 @@ impl<'tcx> LanguageItemCollector<'tcx> {
|
|||
.map(|p| p.display().to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(", ")
|
||||
.into()
|
||||
};
|
||||
let first_defined_span = self.tcx.hir().span_if_local(original_def_id);
|
||||
let mut orig_crate_name = Empty;
|
||||
|
@ -98,7 +97,6 @@ impl<'tcx> LanguageItemCollector<'tcx> {
|
|||
.map(|p| p.display().to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(", ")
|
||||
.into()
|
||||
};
|
||||
if first_defined_span.is_none() {
|
||||
orig_crate_name = self.tcx.crate_name(original_def_id.krate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue