From 7dd3a8f0f9cbdc53d00d53e07f8548bc4ddcdddf Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Mon, 1 Jan 2024 12:33:34 -0500 Subject: [PATCH] fix: clippy error for image_tag --- .rusty-hook.toml | 3 +-- src/module_recipe.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.rusty-hook.toml b/.rusty-hook.toml index bb22860..a2d0ec7 100644 --- a/.rusty-hook.toml +++ b/.rusty-hook.toml @@ -1,6 +1,5 @@ [hooks] -pre-commit = "cargo test" -pre-push = "cargo clippy -- -D warnings" +pre-commit = "cargo fmt && cargo test && cargo clippy -- -D warnings" [logging] verbose = true diff --git a/src/module_recipe.rs b/src/module_recipe.rs index fa7a5ac..2b29fa1 100644 --- a/src/module_recipe.rs +++ b/src/module_recipe.rs @@ -83,7 +83,7 @@ impl Recipe { debug!("Running in a PR"); tags.push(format!("pr-{github_event_number}-{image_version}")); } else if github_ref_name == "live" { - tags.push(format!("{image_version}")); + tags.push(image_version.to_owned()); tags.push(format!("{image_version}-{timestamp}")); tags.push("latest".to_string()); } else {