File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ impl App {
3838 }
3939
4040 /// Run the application.
41- pub fn run ( self ) -> Result < ( ) , RuntimeError > {
41+ #[ expect( unused_mut) ] // TODO: remove this
42+ pub fn run ( mut self ) -> Result < ( ) , RuntimeError > {
4243 // DYNAMIC DISPATCH POLICY:
4344 //
4445 // Errors rarely occur, therefore, using dynamic dispatch to report errors have an acceptable
@@ -132,6 +133,12 @@ impl App {
132133 . unwrap_or_else ( |_| eprintln ! ( "warning: Failed to set thread limit to {threads}" ) ) ;
133134 }
134135
136+ if cfg ! ( unix) && self . args . deduplicate_hardlinks && self . args . files . len ( ) > 1 {
137+ // Hardlinks deduplication doesn't work properly if there are more than 1 paths pointing to
138+ // the same tree or if a path points to a subtree of another path. Therefore, we must find
139+ // and remove such duplications before they cause problem.
140+ }
141+
135142 let report_error = if self . args . silent_errors {
136143 ErrorReport :: SILENT
137144 } else {
You can’t perform that action at this time.
0 commit comments