From f0d0991559def2d8652e59e4573306bbcbfd4996 Mon Sep 17 00:00:00 2001 From: aegislash525 Date: Mon, 7 Oct 2024 08:23:08 +0200 Subject: [PATCH] Tiny fix --- src/run_deployer/pull/build.rs | 2 +- src/run_deployer/pull/build/project_trait.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/run_deployer/pull/build.rs b/src/run_deployer/pull/build.rs index 2f43535..8a5a536 100644 --- a/src/run_deployer/pull/build.rs +++ b/src/run_deployer/pull/build.rs @@ -107,7 +107,7 @@ fn move_build(project: &Path, destination: &Path, service_name: String) -> Resul /// Panics if fails to spawn the CMD. #[deprecated( - since = "0.2.1", + since = "0.2.2", note = "Use structures of projects that implement `Project trait`." )] fn build_rust(path: &Path) -> Result { diff --git a/src/run_deployer/pull/build/project_trait.rs b/src/run_deployer/pull/build/project_trait.rs index 6699e41..82a8d45 100644 --- a/src/run_deployer/pull/build/project_trait.rs +++ b/src/run_deployer/pull/build/project_trait.rs @@ -12,7 +12,7 @@ pub struct Rust<'a> { build_dir: &'a str, } -impl Project for Rust { +impl<'a> Project for Rust<'a> { fn new() -> Self { Rust { build_dir: "/target/release" } } @@ -37,7 +37,7 @@ pub struct Go<'a> { build_dir: &'a str, } -impl Project for Go { +impl<'a> Project for Go<'a> { fn new() -> Self { // it builds in root dir of a project Go { build_dir: "" } @@ -57,7 +57,7 @@ pub struct Gleam<'a> { build_dir: &'a str, } -impl Project for Gleam { +impl<'a> Project for Gleam<'a> { fn new() -> Self { Gleam { build_dir: "/build/prod/erlang" } }