@@ -2530,7 +2530,7 @@ fn item_ty_to_section(ty: ItemType) -> ItemSection {
2530
2530
/// types are re-exported, we don't use the corresponding
2531
2531
/// entry from the js file, as inlining will have already
2532
2532
/// 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 > {
2534
2534
let mut out = Vec :: new ( ) ;
2535
2535
let mut visited = FxHashSet :: default ( ) ;
2536
2536
let mut work = VecDeque :: new ( ) ;
@@ -2547,7 +2547,7 @@ fn collect_paths_for_type(first_ty: clean::Type, cache: &Cache) -> Vec<String> {
2547
2547
work. push_back ( first_ty) ;
2548
2548
2549
2549
while let Some ( ty) = work. pop_front ( ) {
2550
- if !visited. insert ( ty. clone ( ) ) {
2550
+ if !visited. insert ( ty) {
2551
2551
continue ;
2552
2552
}
2553
2553
@@ -2557,16 +2557,16 @@ fn collect_paths_for_type(first_ty: clean::Type, cache: &Cache) -> Vec<String> {
2557
2557
work. extend ( tys. into_iter ( ) ) ;
2558
2558
}
2559
2559
clean:: Type :: Slice ( ty) => {
2560
- work. push_back ( * ty) ;
2560
+ work. push_back ( ty) ;
2561
2561
}
2562
2562
clean:: Type :: Array ( ty, _) => {
2563
- work. push_back ( * ty) ;
2563
+ work. push_back ( ty) ;
2564
2564
}
2565
2565
clean:: Type :: RawPointer ( _, ty) => {
2566
- work. push_back ( * ty) ;
2566
+ work. push_back ( ty) ;
2567
2567
}
2568
2568
clean:: Type :: BorrowedRef { type_, .. } => {
2569
- work. push_back ( * type_) ;
2569
+ work. push_back ( type_) ;
2570
2570
}
2571
2571
clean:: Type :: QPath ( box clean:: QPathData { self_type, trait_, .. } ) => {
2572
2572
work. push_back ( self_type) ;
0 commit comments