Skip to content

Commit

Permalink
Satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
phire22 committed Jun 27, 2024
1 parent 35ca355 commit 4886a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wireman-config/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub fn setup(dry_run: bool) -> Result<Config> {
history_dir
}
};
config.history.directory = history_dir.clone();
config.history.directory.clone_from(&history_dir);
if !dry_run && !Path::new(&history_dir).exists() {
if let Err(err) = std::fs::create_dir(&history_dir) {
return Err(Error::SetupError(SetupError::new(format!(
Expand All @@ -106,7 +106,7 @@ pub fn setup(dry_run: bool) -> Result<Config> {
return Err(Error::SetupError(err));
}
Ok(logger_dir) => {
config.logging.directory = logger_dir.clone();
config.logging.directory.clone_from(&logger_dir);
let logger_file = config.logging.file_path_expanded();
if dry_run {
println!("{:<20} {}", "Logging:", logger_file);
Expand Down

0 comments on commit 4886a2d

Please sign in to comment.