From 28343a98f391c9bc97edbdf607a873983ef3e65c Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Thu, 25 Jan 2024 21:37:52 +0000 Subject: [PATCH] automatic cargo CI changes --- src/config/mod.rs | 6 +++--- src/lib.rs | 2 +- src/main.rs | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/config/mod.rs b/src/config/mod.rs index c0812bf..45ac6aa 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -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 { + pub fn load(_cli: Cli) -> Result { 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); diff --git a/src/lib.rs b/src/lib.rs index 5788bd5..7404805 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,2 +1,2 @@ -pub mod error; pub mod config; +pub mod error; diff --git a/src/main.rs b/src/main.rs index 4f88ed6..275c473 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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!() }