Skip to content

Commit

Permalink
simplify templates_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i committed May 16, 2024
1 parent b311a0d commit 39c2694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ impl HcScaffold {
(ui_framework.name(), ui_framework.template_filetree()?)
}
custom_template_path if Path::new(custom_template_path).exists() => {
let templates_dir = current_dir.join(PathBuf::from(custom_template_path));
let templates_dir = current_dir.join(custom_template_path);
(
custom_template_path.to_string(),
load_directory_into_memory(&templates_dir)?,
Expand Down

0 comments on commit 39c2694

Please sign in to comment.