]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/json/conversions.rs
Remove unnecessary `Box` in `Type::QPath`
[rust.git] / src / librustdoc / json / conversions.rs
index 10320baaf93d07c9e4e9e742fda93b366f0d0695..fda540aa186b08924974fd9a4d383aae4e4a7ffe 100644 (file)
@@ -436,7 +436,7 @@ fn from_tcx(ty: clean::Type, tcx: TyCtxt<'_>) -> Self {
             },
             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)),