automatic cargo CI changes

This commit is contained in:
PlexSheep 2024-01-25 21:37:52 +00:00 committed by github-actions[bot]
parent 0fc325ff72
commit 28343a98f3
3 changed files with 6 additions and 7 deletions

View File

@ -13,7 +13,7 @@ use cli::Cli;
#[derive(Debug, Clone, Deserialize)]
pub struct Changelog {
enable: bool,
#[serde(alias="git-log")]
#[serde(alias = "git-log")]
git_log: bool,
}
@ -110,10 +110,10 @@ impl Debug for Config {
}
impl Config {
pub fn load(cli: Cli) -> Result<Self> {
pub fn load(_cli: Cli) -> Result<Self> {
let repo = match git2::Repository::open_from_env() {
Ok(repo) => repo,
Err(err) => {
Err(_err) => {
let err = ConfigError::GitRepoNotFound.into();
error!("{err}");
return Err(err);

View File

@ -1,2 +1,2 @@
pub mod error;
pub mod config;
pub mod error;

View File

@ -1,13 +1,12 @@
use anyhow::Result;
use libpt::log::{debug, trace};
mod error;
mod config;
mod error;
use config::{cli::Cli, Config};
fn main() -> Result<()> {
let cli = Cli::cli_parse();
let config = Config::load(cli.clone())?;
let _config = Config::load(cli.clone())?;
todo!()
}