fix: resolve borrow errors in db and main modules

This commit is contained in:
Andrew Phillips (aider)
2025-05-06 13:18:08 -03:00
parent 96b10a926f
commit 655418d9c7

View File

@@ -530,10 +530,10 @@ fn mode_diff(cmd: &mut Command, args: Args, ids: &mut Vec<i64>, tags: &mut Vec<S
.spawn() .spawn()
.expect("Failed to execute diff command"); .expect("Failed to execute diff command");
let stdout_a = unsafe { std::fs::File::from_raw_fd(fd_a_write) }; let mut stdout_a = unsafe { std::fs::File::from_raw_fd(fd_a_write) };
let stdout_b = unsafe { std::fs::File::from_raw_fd(fd_b_write) }; let mut stdout_b = unsafe { std::fs::File::from_raw_fd(fd_b_write) };
let stdout_a = BufWriter::new(stdout_a); let mut stdout_a = BufWriter::new(stdout_a);
let stdout_b = BufWriter::new(stdout_b); let mut stdout_b = BufWriter::new(stdout_b);
compression_engine_a.copy(item_path_a.clone(), &mut stdout_a)?; compression_engine_a.copy(item_path_a.clone(), &mut stdout_a)?;
compression_engine_b.copy(item_path_b.clone(), &mut stdout_b)?; compression_engine_b.copy(item_path_b.clone(), &mut stdout_b)?;