Skip to content

Commit 6234f13

Browse files
authored
Merge pull request #22 from nikomatsakis/main
refactor: convert Stdio to unit struct for easier reference
2 parents 416c002 + f269af8 commit 6234f13

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/elizacp/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async fn main() -> Result<()> {
7070
tracing::info!("Elizacp starting");
7171

7272
// Run the Eliza agent
73-
run_elizacp(sacp_tokio::Stdio::default()).await?;
73+
run_elizacp(sacp_tokio::Stdio).await?;
7474

7575
Ok(())
7676
}

src/sacp-conductor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl ConductorArgs {
122122

123123
Conductor::new(name, providers, None)
124124
.into_handler_chain()
125-
.connect_to(Stdio::default())?
125+
.connect_to(Stdio)?
126126
.serve()
127127
.await
128128
}

src/sacp-tokio/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ pub use acp_agent::AcpAgent;
1010
use sacp::{ByteStreams, Transport};
1111
use tokio_util::compat::{TokioAsyncReadCompatExt, TokioAsyncWriteCompatExt};
1212

13-
#[derive(Default)]
14-
pub struct Stdio {
15-
_private: (),
16-
}
13+
pub struct Stdio;
1714

1815
impl Transport for Stdio {
1916
fn transport(

0 commit comments

Comments
 (0)