fix: linting issues

This commit is contained in:
Alex Wellnitz 2024-12-16 14:48:10 +01:00
parent 8b2d1b9dbd
commit 1966acf92d
2 changed files with 8 additions and 2 deletions

View File

@ -17,7 +17,7 @@ async fn main() -> std::io::Result<()> {
let args = Args::parse();
// Initialize logger
if args.log_level != "" {
if !args.log_level.is_empty() {
env_logger::init_from_env(Env::default().default_filter_or(args.log_level));
} else {
env_logger::init_from_env(Env::default().default_filter_or("info"));

View File

@ -16,7 +16,13 @@ impl Config {
}
}
pub(crate) fn load_from_file(config_path: &str) -> Result<Config, Error> {
pub(crate) fn load_from_file(_config_path: &str) -> Result<Config, Error> {
unimplemented!();
}
}
impl Default for Config {
fn default() -> Self {
Self::new()
}
}