@@ -2530,7 +2530,7 @@ fn item_ty_to_section(ty: ItemType) -> ItemSection {
25302530/// types are re-exported, we don't use the corresponding
25312531/// entry from the js file, as inlining will have already
25322532/// picked up the impl
2533- fn collect_paths_for_type ( first_ty : clean:: Type , cache : & Cache ) -> Vec < String > {
2533+ fn collect_paths_for_type ( first_ty : & clean:: Type , cache : & Cache ) -> Vec < String > {
25342534 let mut out = Vec :: new ( ) ;
25352535 let mut visited = FxHashSet :: default ( ) ;
25362536 let mut work = VecDeque :: new ( ) ;
@@ -2547,7 +2547,7 @@ fn collect_paths_for_type(first_ty: clean::Type, cache: &Cache) -> Vec<String> {
25472547 work. push_back ( first_ty) ;
25482548
25492549 while let Some ( ty) = work. pop_front ( ) {
2550- if !visited. insert ( ty. clone ( ) ) {
2550+ if !visited. insert ( ty) {
25512551 continue ;
25522552 }
25532553
@@ -2557,16 +2557,16 @@ fn collect_paths_for_type(first_ty: clean::Type, cache: &Cache) -> Vec<String> {
25572557 work. extend ( tys. into_iter ( ) ) ;
25582558 }
25592559 clean:: Type :: Slice ( ty) => {
2560- work. push_back ( * ty) ;
2560+ work. push_back ( ty) ;
25612561 }
25622562 clean:: Type :: Array ( ty, _) => {
2563- work. push_back ( * ty) ;
2563+ work. push_back ( ty) ;
25642564 }
25652565 clean:: Type :: RawPointer ( _, ty) => {
2566- work. push_back ( * ty) ;
2566+ work. push_back ( ty) ;
25672567 }
25682568 clean:: Type :: BorrowedRef { type_, .. } => {
2569- work. push_back ( * type_) ;
2569+ work. push_back ( type_) ;
25702570 }
25712571 clean:: Type :: QPath ( box clean:: QPathData { self_type, trait_, .. } ) => {
25722572 work. push_back ( self_type) ;
0 commit comments