diff --git a/crates/cuddle-ci/src/rust_service/ssh_agent.rs b/crates/cuddle-ci/src/rust_service/ssh_agent.rs index 1727e46..5c6dea1 100644 --- a/crates/cuddle-ci/src/rust_service/ssh_agent.rs +++ b/crates/cuddle-ci/src/rust_service/ssh_agent.rs @@ -20,7 +20,7 @@ impl SshAgent { #[async_trait] impl DaggerMiddleware for SshAgent { async fn handle(&self, container: Container) -> eyre::Result { - let c = container.with_unix_socket("/tmp/ssh_socket", self.socket); + let c = container.with_unix_socket("/tmp/ssh_socket", self.socket.clone()); Ok(c) } @@ -35,21 +35,21 @@ pub trait SshAgentExt { impl SshAgentExt for RustService { fn with_socket(&mut self, socket: dagger_sdk::Socket) -> &mut Self { self.with_stage(super::RustServiceStage::BeforeDeps(Arc::new( - SshAgent::new(socket.clone()).extend(deps), - ))) - .with_stage(super::RustServiceStage::AfterBase(Arc::new( - SshAgent::new(socket.clone()).extend(deps), + SshAgent::new(socket.clone()), ))) + .with_stage(super::RustServiceStage::AfterBase(Arc::new(SshAgent::new( + socket.clone(), + )))) } } impl SshAgentExt for LeptosService { fn with_socket(&mut self, socket: dagger_sdk::Socket) -> &mut Self { self.with_stage(super::RustServiceStage::BeforeDeps(Arc::new( - SshAgent::new(socket.clone()).extend(deps), - ))) - .with_stage(super::RustServiceStage::AfterBase(Arc::new( - SshAgent::new(socket.clone()).extend(deps), + SshAgent::new(socket.clone()), ))) + .with_stage(super::RustServiceStage::AfterBase(Arc::new(SshAgent::new( + socket.clone(), + )))) } }