Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
fankaiLiu committed Nov 26, 2023
1 parent b605235 commit f062502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/create_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ pub fn write_project_file(
if is_sqlx {
//data
let data_path = project_path.join("data");
std::fs::create_dir_all(&data_path)?;
std::fs::create_dir_all(data_path)?;
if is_sqlite {
copy_binary_file(include_bytes!("../template/data/demo.db"), "data/demo.db")?;
} else {
Expand Down Expand Up @@ -467,7 +467,7 @@ fn create_basic_file(
) -> Result<()> {
std::fs::create_dir_all(project_path)?;
let src_path = project_path.join("src");
std::fs::create_dir_all(&src_path)?;
std::fs::create_dir_all(src_path)?;

let templates = [
(
Expand Down

0 comments on commit f062502

Please sign in to comment.