Skip to content

Commit ba9fa33

Browse files
committed
docs: duplicated arguments
1 parent 5503aa2 commit ba9fa33

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/app.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)