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)")