chore(cli): remove unneeded create_dir_all call

This commit is contained in:
Lucas Nogueira 2022-11-03 09:37:18 -03:00
parent 873b9aee90
commit ab29908aba
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1

View File

@ -344,8 +344,6 @@ fn rename_app(bin_path: &Path, product_name: Option<&str>) -> crate::Result<Path
.join(&product_name)
.with_extension(bin_path.extension().unwrap_or_default());
std::fs::create_dir_all(product_path.parent().unwrap())?;
rename(&bin_path, &product_path).with_context(|| {
format!(
"failed to rename `{}` to `{}`",