소스 검색

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