refactor: rename stdout_a and stdout_b variables for clarity
This commit is contained in:
committed by
Andrew Phillips (aider)
parent
655418d9c7
commit
277038e7ad
@@ -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 mut stdout_a = unsafe { std::fs::File::from_raw_fd(fd_a_write) };
|
let stdout_a_raw = unsafe { std::fs::File::from_raw_fd(fd_a_write) };
|
||||||
let mut stdout_b = unsafe { std::fs::File::from_raw_fd(fd_b_write) };
|
let stdout_b_raw = unsafe { std::fs::File::from_raw_fd(fd_b_write) };
|
||||||
let mut stdout_a = BufWriter::new(stdout_a);
|
let mut stdout_a = BufWriter::new(stdout_a_raw);
|
||||||
let mut stdout_b = BufWriter::new(stdout_b);
|
let mut stdout_b = BufWriter::new(stdout_b_raw);
|
||||||
|
|
||||||
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)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user