fix: remove invalid clone calls for BufWriter and Box<dyn CompressionEngine>

This commit is contained in:
Andrew Phillips (aider)
2025-05-06 13:47:34 -03:00
parent b20759b781
commit 43eff88003

View File

@@ -543,9 +543,9 @@ fn mode_diff(cmd: &mut Command, args: Args, ids: &mut Vec<i64>, tags: &mut Vec<S
debug!("MAIN: Sending item A to diff"); debug!("MAIN: Sending item A to diff");
let handle_a = { let handle_a = {
let stdout_a = stdout_a.clone(); let stdout_a = stdout_a;
let item_path_a = item_path_a.clone(); let item_path_a = item_path_a.clone();
let compression_engine_a = compression_engine_a.clone(); let compression_engine_a = compression_engine_a;
std::thread::spawn(move || { std::thread::spawn(move || {
compression_engine_a.copy(item_path_a, &mut stdout_a).unwrap() compression_engine_a.copy(item_path_a, &mut stdout_a).unwrap()
}) })
@@ -553,9 +553,9 @@ fn mode_diff(cmd: &mut Command, args: Args, ids: &mut Vec<i64>, tags: &mut Vec<S
debug!("MAIN: Sending item B to diff"); debug!("MAIN: Sending item B to diff");
let handle_b = { let handle_b = {
let stdout_b = stdout_b.clone(); let stdout_b = stdout_b;
let item_path_b = item_path_b.clone(); let item_path_b = item_path_b.clone();
let compression_engine_b = compression_engine_b.clone(); let compression_engine_b = compression_engine_b;
std::thread::spawn(move || { std::thread::spawn(move || {
compression_engine_b.copy(item_path_b, &mut stdout_b).unwrap() compression_engine_b.copy(item_path_b, &mut stdout_b).unwrap()
}) })