From f7a22d21f531c719870eae7b0082965f1e7e4ce6 Mon Sep 17 00:00:00 2001 From: epi Date: Tue, 27 Feb 2024 07:05:14 -0500 Subject: [PATCH] clippy --- src/config/container.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/config/container.rs b/src/config/container.rs index 1e7331ae..dd486c69 100644 --- a/src/config/container.rs +++ b/src/config/container.rs @@ -21,7 +21,7 @@ use std::{ collections::HashMap, env::{current_dir, current_exe}, fs::read_to_string, - path::PathBuf, + path::{Path, PathBuf}, }; /// macro helper to abstract away repetitive configuration updates @@ -576,9 +576,7 @@ impl Configuration { // - current directory // merge a config found at /etc/feroxbuster/ferox-config.toml - let config_file = PathBuf::new() - .join("/etc/feroxbuster") - .join(DEFAULT_CONFIG_NAME); + let config_file = Path::new("/etc/feroxbuster").join(DEFAULT_CONFIG_NAME); Self::parse_and_merge_config(config_file, config)?; // merge a config found at ~/.config/feroxbuster/ferox-config.toml