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

@ -110,10 +110,10 @@ impl Debug for Config {
} }
impl 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() { let repo = match git2::Repository::open_from_env() {
Ok(repo) => repo, Ok(repo) => repo,
Err(err) => { Err(_err) => {
let err = ConfigError::GitRepoNotFound.into(); let err = ConfigError::GitRepoNotFound.into();
error!("{err}"); error!("{err}");
return Err(err); return Err(err);

View File

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

View File

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