File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
turbopack/crates/turbopack-core/src/module_graph Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -757,8 +757,7 @@ pub async fn compute_module_batches(
757
757
// Create the batch groups by grouping batches with the same chunk groups
758
758
let mut batch_groups: FxHashMap < _ , Vec < _ > > = FxHashMap :: default ( ) ;
759
759
for ( i, pre_batch) in pre_batches. batches . iter ( ) . enumerate ( ) {
760
- let key =
761
- BuildHasherDefault :: < FxHasher > :: default ( ) . prehash ( pre_batch. chunk_groups . clone ( ) ) ;
760
+ let key = BuildHasherDefault :: < FxHasher > :: default ( ) . prehash ( & pre_batch. chunk_groups ) ;
762
761
let batch = batches[ i] ;
763
762
batch_groups. entry ( key) . or_default ( ) . push ( batch) ;
764
763
}
@@ -767,7 +766,7 @@ pub async fn compute_module_batches(
767
766
. module_chunk_groups
768
767
. get ( & module)
769
768
. context ( "all modules need to have chunk group info" ) ?;
770
- let key = BuildHasherDefault :: < FxHasher > :: default ( ) . prehash ( chunk_groups. clone ( ) ) ;
769
+ let key = BuildHasherDefault :: < FxHasher > :: default ( ) . prehash ( chunk_groups) ;
771
770
batch_groups
772
771
. entry ( key)
773
772
. or_default ( )
You can’t perform that action at this time.
0 commit comments