automatic cargo CI changes

This commit is contained in:
PlexSheep 2024-02-16 19:08:27 +00:00 committed by github-actions[bot]
parent acc5381dd1
commit 0abcdff5af
5 changed files with 11 additions and 20 deletions

View File

@ -1,4 +1,4 @@
use crate::{config::Config, error::*};
pub async fn publish(cfg: &Config) -> Result<()> {
pub async fn publish(_cfg: &Config) -> Result<()> {
todo!()
}

View File

@ -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

View File

@ -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<Self> {
pub async fn build(_cfg: &Config) -> Result<Self> {
todo!()
}
}

View File

@ -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<Self> {
pub async fn build(_cfg: &Config) -> Result<Self> {
todo!()
}
}

View File

@ -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<Self> {
pub async fn build(_cfg: &Config) -> Result<Self> {
todo!()
}
}