automatic cargo CI changes

This commit is contained in:
PlexSheep 2024-04-26 08:07:04 +00:00 committed by github-actions[bot]
parent ff9306047e
commit fcd6b6a4d4
4 changed files with 7 additions and 4 deletions

View File

@ -18,7 +18,10 @@ pub(crate) fn get_repo() -> Result<git2::Repository> {
Ok(repo)
}
pub async fn tag<'repo>(repo: &'repo mut git2::Repository, cfg: &Config) -> Result<git2::Tag<'repo>> {
pub async fn tag<'repo>(
repo: &'repo mut git2::Repository,
cfg: &Config,
) -> Result<git2::Tag<'repo>> {
// TODO: error handling
// TODO: allow force
// TODO: allow setting a message

View File

@ -26,7 +26,7 @@ impl ServerApi for Gitea {
}
impl Gitea {
pub async fn build(api: &Api, cfg: &Config) -> Result<Self> {
pub async fn build(api: &Api, _cfg: &Config) -> Result<Self> {
Ok(Self { api: api.clone() })
}
}

View File

@ -11,7 +11,7 @@ pub struct Github {
}
impl Github {
pub async fn build(api: &Api, cfg: &Config) -> Result<Self> {
pub async fn build(api: &Api, _cfg: &Config) -> Result<Self> {
Ok(Self {
api: api.to_owned(),
})

View File

@ -26,7 +26,7 @@ impl ServerApi for Gitlab {
}
impl Gitlab {
pub async fn build(api: &Api, cfg: &Config) -> Result<Self> {
pub async fn build(api: &Api, _cfg: &Config) -> Result<Self> {
Ok(Self { api: api.clone() })
}
}