fix: Correct module paths and conditional compilation for magic feature

Co-authored-by: aider (openai/andrew/openrouter/sonoma-sky-alpha) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-09-10 10:11:25 -03:00
parent c24728202d
commit a0e0126ff3
4 changed files with 12 additions and 4 deletions

View File

@@ -171,6 +171,7 @@ fn spawn_writer_thread(
compression_type: crate::compression_engine::CompressionType,
fd_write: libc::c_int,
) -> std::thread::JoinHandle<Result<(), anyhow::Error>> {
#[allow(unsafe_code)]
let pipe_writer_raw = unsafe { std::fs::File::from_raw_fd(fd_write) };
std::thread::spawn(move || {
write_item_to_pipe(item_path, compression_type, pipe_writer_raw)