From 9ee64020fec033c707f8d7bd32f1d42cb830168e Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 30 Dec 2023 21:58:17 +0100 Subject: [PATCH] fix: build errors on ssh agent Signed-off-by: kjuulh --- crates/cuddle-ci/src/rust_service/ssh_agent.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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(), + )))) } }