Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
PlexSheep committed Apr 26, 2024
2 parents 56d6a50 + fcd6b6a commit ca3d1b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/git/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/serverapi/gitea.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() })
}
}
2 changes: 1 addition & 1 deletion src/serverapi/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
})
Expand Down
2 changes: 1 addition & 1 deletion src/serverapi/gitlab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() })
}
}

0 comments on commit ca3d1b7

Please sign in to comment.