@@ -2,21 +2,23 @@ use std::{fs::Metadata, path::Path};
22
33/// Argument to pass to [`RecordHardlinks::record_hardlinks`].
44#[ derive( Debug , Clone , Copy ) ]
5- pub struct RecordHardlinksArgument < ' a , Size , Report : ?Sized > {
5+ pub struct Argument < ' a , Size , Report : ?Sized > {
66 pub path : & ' a Path ,
77 pub stats : & ' a Metadata ,
88 pub size : Size ,
99 pub reporter : & ' a Report ,
1010}
1111
12- impl < ' a , Size , Report : ?Sized > RecordHardlinksArgument < ' a , Size , Report > {
12+ pub use Argument as RecordHardlinksArgument ;
13+
14+ impl < ' a , Size , Report : ?Sized > Argument < ' a , Size , Report > {
1315 pub ( crate ) fn new (
1416 path : & ' a Path ,
1517 stats : & ' a Metadata ,
1618 size : Size ,
1719 reporter : & ' a Report ,
1820 ) -> Self {
19- RecordHardlinksArgument {
21+ Argument {
2022 path,
2123 stats,
2224 size,
@@ -28,7 +30,7 @@ impl<'a, Size, Report: ?Sized> RecordHardlinksArgument<'a, Size, Report> {
2830/// Ability to detect and record hardlinks.
2931pub trait RecordHardlinks < Size , Reporter : ?Sized > {
3032 /// Perform hardlinks detection and recording.
31- fn record_hardlinks ( & self , argument : RecordHardlinksArgument < Size , Reporter > ) ;
33+ fn record_hardlinks ( & self , argument : Argument < Size , Reporter > ) ;
3234}
3335
3436/// Do detect and record hardlinks.
0 commit comments