Skip to content

Commit

Permalink
Tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aegislash525 committed Oct 7, 2024
1 parent e2cfb9f commit f0d0991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/run_deployer/pull/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ExitStatus> {
Expand Down
6 changes: 3 additions & 3 deletions src/run_deployer/pull/build/project_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
}
Expand All @@ -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: "" }
Expand All @@ -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" }
}
Expand Down

0 comments on commit f0d0991

Please # to comment.