Преглед на файлове

chore(cli): remove unneeded create_dir_all call

Lucas Nogueira преди 2 години
родител
ревизия
ab29908aba
променени са 1 файла, в които са добавени 0 реда и са изтрити 2 реда
  1. 0 2
      tooling/cli/src/interface/rust/desktop.rs

+ 0 - 2
tooling/cli/src/interface/rust/desktop.rs

@@ -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 `{}`",