feat: add derive_more for NumberOrString and ProgramWriter
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -5,12 +5,17 @@
|
||||
|
||||
use std::io::Write;
|
||||
|
||||
use derive_more::{Deref, DerefMut};
|
||||
|
||||
/// A wrapper around a child process's stdin that implements the Write trait.
|
||||
///
|
||||
/// This struct allows writing data to an external process's standard input
|
||||
/// in a way that's compatible with Rust's I/O traits.
|
||||
#[derive(Deref, DerefMut)]
|
||||
pub struct ProgramWriter {
|
||||
/// The stdin handle of a spawned child process
|
||||
#[deref]
|
||||
#[deref_mut]
|
||||
pub stdin: std::process::ChildStdin,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user