From 9aa9c8e07bcdc34f6795905a0e042a40ccaf2fc4 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 26 Apr 2024 06:58:04 +0000 Subject: [PATCH] automatic cargo CI changes --- src/error.rs | 2 +- src/release/mod.rs | 3 +-- src/serverapi/github.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/error.rs b/src/error.rs index 6f80b38..b67346b 100644 --- a/src/error.rs +++ b/src/error.rs @@ -35,7 +35,7 @@ pub enum ServerApiError { #[error(transparent)] ForgejoApiError(#[from] forgejo_api::ForgejoError), #[error(transparent)] - GithubApiError(#[from] octocrab::Error) + GithubApiError(#[from] octocrab::Error), } #[derive(Error, Debug)] diff --git a/src/release/mod.rs b/src/release/mod.rs index d57bdda..9494ebc 100644 --- a/src/release/mod.rs +++ b/src/release/mod.rs @@ -1,5 +1,4 @@ use crate::{ - changelog, config::Config, error::*, git::{get_commit_sig, push, tag}, @@ -21,7 +20,7 @@ pub struct ReleaseContext { pub async fn release(cfg: &Config, apis: &mut ApiCollection) -> Result<()> { // TODO: Error handling - let changelog = crate::changelog::Changelog::build(cfg)?.to_string(); + let _changelog = crate::changelog::Changelog::build(cfg)?.to_string(); let tag = tag(cfg).await?.name().unwrap().to_string(); let commit_sig = get_commit_sig(cfg).await?; push(cfg).await?; // we assume that we only need to push the current branch to the singular diff --git a/src/serverapi/github.rs b/src/serverapi/github.rs index 596f1c8..429dbcb 100644 --- a/src/serverapi/github.rs +++ b/src/serverapi/github.rs @@ -24,7 +24,7 @@ impl ServerApi for Github { Ok(()) } async fn push_release(&mut self, rc: ReleaseContext) -> Result<()> { - let response = octocrab::instance() + let _response = octocrab::instance() .repos(rc.username, rc.repository) .releases() .create(&rc.tag)