Explorar el Código

chore(cli): remove unneeded create_dir_all call

Lucas Nogueira hace 2 años
padre
commit
ab29908aba
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  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 `{}`",