From cb7f01e85df77ee130948741ff139b5f637bb838 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 10 Jan 2025 00:02:50 +0100 Subject: [PATCH] chore: replace axum republish of async trait with actual async trait --- crates/flux-releaser/src/services/artifacts_db.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/flux-releaser/src/services/artifacts_db.rs b/crates/flux-releaser/src/services/artifacts_db.rs index dcf585a..213b894 100644 --- a/crates/flux-releaser/src/services/artifacts_db.rs +++ b/crates/flux-releaser/src/services/artifacts_db.rs @@ -26,11 +26,9 @@ pub struct GetLatestArtifact { } pub mod traits { - use axum::async_trait; - use super::{AddCommitArtifact, Artifact, GetLatestArtifact}; - #[async_trait] + #[async_trait::async_trait] pub trait ArtifactsDB { async fn commit_artifact(&self, commit_artifact: AddCommitArtifact) -> anyhow::Result<()>; async fn get_latest_artifact( @@ -41,7 +39,6 @@ pub mod traits { } pub mod defaults { - use axum::async_trait; use sqlx::PgPool; use super::{traits, AddCommitArtifact, Artifact, GetLatestArtifact}; @@ -56,7 +53,7 @@ pub mod defaults { } } - #[async_trait] + #[async_trait::async_trait] impl traits::ArtifactsDB for DefaultArtifactsDB { async fn commit_artifact(&self, commit_artifact: AddCommitArtifact) -> anyhow::Result<()> { sqlx::query("INSERT INTO artifacts (app, branch, artifact_id) VALUES ($1, $2, $3)")