refactor: move ProgramWriter to common.rs

This commit is contained in:
Andrew Phillips (aider)
2025-05-22 09:48:19 -03:00
parent beef2e773e
commit e1a5dbf0f1
5 changed files with 19 additions and 32 deletions

View File

@@ -35,21 +35,6 @@ pub trait MetaPlugin {
use std::io::Write;
// Writer that implements Write for the program meta plugin
struct ProgramWriter {
stdin: std::process::ChildStdin,
}
impl Write for ProgramWriter {
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
self.stdin.write(buf)
}
fn flush(&mut self) -> std::io::Result<()> {
self.stdin.flush()
}
}
lazy_static! {
pub static ref META_PLUGIN_PROGRAMS: EnumMap<MetaPluginType, Option<MetaPluginProgram>> = enum_map! {
MetaPluginType::File => {