Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
epi052 committed Feb 27, 2024
1 parent 22f2948 commit f7a22d2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/config/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f7a22d2

Please sign in to comment.