Merge branch 'devel'
cargo devel CI / cargo CI (push) Successful in 2m13s Details

This commit is contained in:
Christoph J. Scherr 2024-04-26 10:07:30 +02:00
commit ca3d1b7e82
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() })
}
}