@@ -4,17 +4,17 @@ use derive_more::{Display, Error};
44use pipe_trait:: Pipe ;
55use std:: { fmt:: Debug , path:: Path } ;
66
7- /// Storage to be used by [`crate::hook::RecordHardLink `].
7+ /// Storage to be used by [`crate::hook::RecordHardlink `].
88#[ derive( Debug , Clone ) ]
9- pub struct RecordHardLinkStorage < Size > (
9+ pub struct HardlinkList < Size > (
1010 /// Map an inode number to its size and detected paths.
1111 DashMap < InodeNumber , ( Size , LinkPathList ) > , // TODO: benchmark against Mutex<HashMap<InodeNumber, (Size, LinkPathList)>>
1212) ;
1313
14- impl < Size > RecordHardLinkStorage < Size > {
14+ impl < Size > HardlinkList < Size > {
1515 /// Create a new record.
1616 pub fn new ( ) -> Self {
17- RecordHardLinkStorage ( DashMap :: new ( ) )
17+ HardlinkList ( DashMap :: new ( ) )
1818 }
1919
2020 /// Iterate over the recorded entries.
@@ -23,9 +23,9 @@ impl<Size> RecordHardLinkStorage<Size> {
2323 }
2424}
2525
26- impl < Size > Default for RecordHardLinkStorage < Size > {
26+ impl < Size > Default for HardlinkList < Size > {
2727 fn default ( ) -> Self {
28- RecordHardLinkStorage :: new ( )
28+ HardlinkList :: new ( )
2929 }
3030}
3131
@@ -39,15 +39,15 @@ pub struct SizeConflictError<Size> {
3939 pub detected : Size ,
4040}
4141
42- /// Error that occurs when it fails to add an item to [`RecordHardLinkStorage `].
42+ /// Error that occurs when it fails to add an item to [`RecordHardlinkStorage `].
4343#[ derive( Debug , Display , Error ) ]
4444#[ display( bound( Size : Debug ) ) ]
4545#[ non_exhaustive]
4646pub enum AddError < Size > {
4747 SizeConflict ( SizeConflictError < Size > ) ,
4848}
4949
50- impl < Size > RecordHardLinkStorage < Size >
50+ impl < Size > HardlinkList < Size >
5151where
5252 Size : size:: Size ,
5353{
7878 }
7979}
8080
81- /// Iterator over entries in [`RecordHardLinkStorage `].
81+ /// Iterator over entries in [`RecordHardlinkStorage `].
8282#[ derive( derive_more:: Debug ) ]
8383#[ debug( bound( ) ) ]
8484#[ debug( "Iter(..)" ) ]
0 commit comments