Remove unnecessary Box in Type::QPath
This commit is contained in:
parent
b8351c30e4
commit
e20bb157a2
4 changed files with 12 additions and 13 deletions
|
|
@ -436,7 +436,7 @@ impl FromWithTcx<clean::Type> for Type {
|
|||
},
|
||||
QPath { name, self_type, trait_, .. } => {
|
||||
// FIXME: should `trait_` be a clean::Path equivalent in JSON?
|
||||
let trait_ = ResolvedPath { did: trait_.res.def_id(), path: *trait_ }.into_tcx(tcx);
|
||||
let trait_ = ResolvedPath { did: trait_.res.def_id(), path: trait_ }.into_tcx(tcx);
|
||||
Type::QualifiedPath {
|
||||
name: name.to_string(),
|
||||
self_type: Box::new((*self_type).into_tcx(tcx)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue