From fcd6b6a4d4036dc6f3a2c9020d16488cdf00a8de Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 26 Apr 2024 08:07:04 +0000 Subject: [PATCH] automatic cargo CI changes --- src/git/mod.rs | 5 ++++- src/serverapi/gitea.rs | 2 +- src/serverapi/github.rs | 2 +- src/serverapi/gitlab.rs | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/git/mod.rs b/src/git/mod.rs index 0597fc2..167e111 100644 --- a/src/git/mod.rs +++ b/src/git/mod.rs @@ -18,7 +18,10 @@ pub(crate) fn get_repo() -> Result { Ok(repo) } -pub async fn tag<'repo>(repo: &'repo mut git2::Repository, cfg: &Config) -> Result> { +pub async fn tag<'repo>( + repo: &'repo mut git2::Repository, + cfg: &Config, +) -> Result> { // TODO: error handling // TODO: allow force // TODO: allow setting a message diff --git a/src/serverapi/gitea.rs b/src/serverapi/gitea.rs index 9b87b3f..ca5b991 100644 --- a/src/serverapi/gitea.rs +++ b/src/serverapi/gitea.rs @@ -26,7 +26,7 @@ impl ServerApi for Gitea { } impl Gitea { - pub async fn build(api: &Api, cfg: &Config) -> Result { + pub async fn build(api: &Api, _cfg: &Config) -> Result { Ok(Self { api: api.clone() }) } } diff --git a/src/serverapi/github.rs b/src/serverapi/github.rs index 913c8a0..c07e3b1 100644 --- a/src/serverapi/github.rs +++ b/src/serverapi/github.rs @@ -11,7 +11,7 @@ pub struct Github { } impl Github { - pub async fn build(api: &Api, cfg: &Config) -> Result { + pub async fn build(api: &Api, _cfg: &Config) -> Result { Ok(Self { api: api.to_owned(), }) diff --git a/src/serverapi/gitlab.rs b/src/serverapi/gitlab.rs index 71fe98a..82524d9 100644 --- a/src/serverapi/gitlab.rs +++ b/src/serverapi/gitlab.rs @@ -26,7 +26,7 @@ impl ServerApi for Gitlab { } impl Gitlab { - pub async fn build(api: &Api, cfg: &Config) -> Result { + pub async fn build(api: &Api, _cfg: &Config) -> Result { Ok(Self { api: api.clone() }) } }