Compare commits

..

No commits in common. "ca3d1b7e829dba7abdcfadb318cac0d8042098bc" and "56d6a50142770367ce014359e8e4f255b3a89122" have entirely different histories.

4 changed files with 4 additions and 7 deletions

View file

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

View file

@ -26,7 +26,7 @@ impl ServerApi for Gitea {
} }
impl 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() }) Ok(Self { api: api.clone() })
} }
} }

View file

@ -11,7 +11,7 @@ pub struct Github {
} }
impl 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 { Ok(Self {
api: api.to_owned(), api: api.to_owned(),
}) })

View file

@ -26,7 +26,7 @@ impl ServerApi for Gitlab {
} }
impl 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() }) Ok(Self { api: api.clone() })
} }
} }