refactor: simplify filter plugin interface to use &mut dyn Read/Write

This commit is contained in:
Andrew Phillips
2025-09-15 17:42:35 -03:00
committed by Andrew Phillips (aider)
parent a8871a9575
commit a72395fe83
17 changed files with 102 additions and 138 deletions

View File

@@ -127,7 +127,7 @@ impl MetaPluginExec {
.stderr(Stdio::piped());
match cmd.spawn() {
Ok(child) => {
Ok(mut child) => {
let stdin = child.stdin.take().unwrap();
self.writer = Some(Box::new(stdin));
self.process = Some(child);