File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ where
142142 . expect ( "convert all names from raw string to UTF-8" ) ;
143143 let shared = deduplication_record
144144 . map_err ( HardlinksHandler :: convert_error) ?
145- . pipe ( HardlinksHandler :: serializable_report ) ?
145+ . pipe ( HardlinksHandler :: json_report ) ?
146146 . unwrap_or_default ( ) ;
147147 let json_tree = JsonTree { tree, shared } ;
148148 let json_data = JsonData {
@@ -181,7 +181,7 @@ pub trait HardlinkSubroutines<Size: size::Size>: DeduplicateSharedSize<Size> {
181181 bytes_format : Size :: DisplayFormat ,
182182 ) -> Result < ( ) , RuntimeError > ;
183183 /// Create a JSON serializable object from the report.
184- fn serializable_report ( report : Self :: Report ) -> Result < Option < JsonShared < Size > > , RuntimeError > ;
184+ fn json_report ( report : Self :: Report ) -> Result < Option < JsonShared < Size > > , RuntimeError > ;
185185}
186186
187187impl < Size > HardlinkSubroutines < Size > for HardlinkIgnorant
@@ -197,7 +197,7 @@ where
197197 Ok ( ( ) )
198198 }
199199
200- fn serializable_report ( ( ) : Self :: Report ) -> Result < Option < JsonShared < Size > > , RuntimeError > {
200+ fn json_report ( ( ) : Self :: Report ) -> Result < Option < JsonShared < Size > > , RuntimeError > {
201201 Ok ( None )
202202 }
203203}
Original file line number Diff line number Diff line change 2525 Ok ( ( ) )
2626 }
2727
28- fn serializable_report ( report : Self :: Report ) -> Result < Option < JsonShared < Size > > , RuntimeError > {
28+ fn json_report ( report : Self :: Report ) -> Result < Option < JsonShared < Size > > , RuntimeError > {
2929 let summary = report. summarize ( ) . pipe ( Some ) ;
3030 let details = report. into_reflection ( ) . pipe ( Some ) ;
3131 Ok ( Some ( JsonShared { details, summary } ) )
You can’t perform that action at this time.
0 commit comments