From 0abcdff5afbbebf474edb77529500c89864da1a5 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 16 Feb 2024 19:08:27 +0000 Subject: [PATCH] automatic cargo CI changes --- src/publish/mod.rs | 2 +- src/release/mod.rs | 2 +- src/serverapi/gitea.rs | 9 +++------ src/serverapi/github.rs | 9 +++------ src/serverapi/gitlab.rs | 9 +++------ 5 files changed, 11 insertions(+), 20 deletions(-) diff --git a/src/publish/mod.rs b/src/publish/mod.rs index 2d4d723..6016027 100644 --- a/src/publish/mod.rs +++ b/src/publish/mod.rs @@ -1,4 +1,4 @@ use crate::{config::Config, error::*}; -pub async fn publish(cfg: &Config) -> Result<()> { +pub async fn publish(_cfg: &Config) -> Result<()> { todo!() } diff --git a/src/release/mod.rs b/src/release/mod.rs index 758e89e..ca3de41 100644 --- a/src/release/mod.rs +++ b/src/release/mod.rs @@ -1,6 +1,6 @@ use crate::{config::Config, error::*, serverapi::ApiCollection}; -pub async fn release(cfg: &Config, apis: &mut ApiCollection) -> Result<()> { +pub async fn release(_cfg: &Config, _apis: &mut ApiCollection) -> Result<()> { // TODO: git tag // TODO: version bump // TODO: version select interactive diff --git a/src/serverapi/gitea.rs b/src/serverapi/gitea.rs index f831ba5..9e08f2f 100644 --- a/src/serverapi/gitea.rs +++ b/src/serverapi/gitea.rs @@ -1,15 +1,12 @@ use async_trait::async_trait; use super::ServerApi; -use crate::{ - config::{ApiType, Config}, - error::*, -}; +use crate::{config::Config, error::*}; pub struct Gitea; #[async_trait] impl ServerApi for Gitea { - async fn init(&mut self, cfg: &Config) -> Result<()> { + async fn init(&mut self, _cfg: &Config) -> Result<()> { todo!() } async fn push_release(&mut self) -> Result<()> { @@ -18,7 +15,7 @@ impl ServerApi for Gitea { } impl Gitea { - pub async fn build(cfg: &Config) -> Result { + pub async fn build(_cfg: &Config) -> Result { todo!() } } diff --git a/src/serverapi/github.rs b/src/serverapi/github.rs index 6475e08..0d4d03c 100644 --- a/src/serverapi/github.rs +++ b/src/serverapi/github.rs @@ -1,15 +1,12 @@ use async_trait::async_trait; use super::ServerApi; -use crate::{ - config::{ApiType, Config}, - error::*, -}; +use crate::{config::Config, error::*}; pub struct Github; #[async_trait] impl ServerApi for Github { - async fn init(&mut self, cfg: &Config) -> Result<()> { + async fn init(&mut self, _cfg: &Config) -> Result<()> { todo!() } async fn push_release(&mut self) -> Result<()> { @@ -18,7 +15,7 @@ impl ServerApi for Github { } impl Github { - pub async fn build(cfg: &Config) -> Result { + pub async fn build(_cfg: &Config) -> Result { todo!() } } diff --git a/src/serverapi/gitlab.rs b/src/serverapi/gitlab.rs index c0d8bfc..c73d35e 100644 --- a/src/serverapi/gitlab.rs +++ b/src/serverapi/gitlab.rs @@ -1,15 +1,12 @@ use async_trait::async_trait; use super::ServerApi; -use crate::{ - config::{ApiType, Config}, - error::*, -}; +use crate::{config::Config, error::*}; pub struct Gitlab; #[async_trait] impl ServerApi for Gitlab { - async fn init(&mut self, cfg: &Config) -> Result<()> { + async fn init(&mut self, _cfg: &Config) -> Result<()> { todo!() } async fn push_release(&mut self) -> Result<()> { @@ -18,7 +15,7 @@ impl ServerApi for Gitlab { } impl Gitlab { - pub async fn build(cfg: &Config) -> Result { + pub async fn build(_cfg: &Config) -> Result { todo!() } }