@@ -187,18 +187,16 @@ impl App {
187187 }
188188 }
189189
190- trait HardlinkDeduplicationSystem <
191- const DEDUPLICATE_HARDLINKS : bool ,
192- const REPORT_PROGRESS : bool ,
193- > : CreateReporter < REPORT_PROGRESS >
190+ trait CreateHardlinksHandler < const DEDUPLICATE_HARDLINKS : bool , const REPORT_PROGRESS : bool > :
191+ CreateReporter < REPORT_PROGRESS >
194192 {
195193 type HardlinksHandler : hardlink:: RecordHardlinks < Self :: Size , Self :: Reporter >
196194 + sub:: DeduplicateHardlinkSizes < Self :: Size > ;
197195 fn create_hardlinks_handler ( ) -> Self :: HardlinksHandler ;
198196 }
199197
200- impl < const REPORT_PROGRESS : bool , SizeGetter >
201- HardlinkDeduplicationSystem < false , REPORT_PROGRESS > for SizeGetter
198+ impl < const REPORT_PROGRESS : bool , SizeGetter > CreateHardlinksHandler < false , REPORT_PROGRESS >
199+ for SizeGetter
202200 where
203201 Self : CreateReporter < REPORT_PROGRESS > ,
204202 Self :: Size : Send + Sync ,
@@ -210,8 +208,8 @@ impl App {
210208 }
211209
212210 #[ cfg( unix) ]
213- impl < const REPORT_PROGRESS : bool , SizeGetter >
214- HardlinkDeduplicationSystem < true , REPORT_PROGRESS > for SizeGetter
211+ impl < const REPORT_PROGRESS : bool , SizeGetter > CreateHardlinksHandler < true , REPORT_PROGRESS >
212+ for SizeGetter
215213 where
216214 Self : CreateReporter < REPORT_PROGRESS > ,
217215 Self :: Size : Send + Sync + ' static ,
@@ -247,7 +245,7 @@ impl App {
247245 direction: Direction :: from_top_down( top_down) ,
248246 bar_alignment: BarAlignment :: from_align_right( align_right) ,
249247 size_getter: <$size_getter as GetSizeUtils >:: INSTANCE ,
250- hardlinks_handler: <$size_getter as HardlinkDeduplicationSystem <{ cfg!( unix) && $deduplicate_hardlinks } , $progress>>:: create_hardlinks_handler( ) ,
248+ hardlinks_handler: <$size_getter as CreateHardlinksHandler <{ cfg!( unix) && $deduplicate_hardlinks } , $progress>>:: create_hardlinks_handler( ) ,
251249 reporter: <$size_getter as CreateReporter <$progress>>:: create_reporter( report_error) ,
252250 bytes_format: <$size_getter as GetSizeUtils >:: formatter( bytes_format) ,
253251 files,
0 commit comments