From f062502395f1c8a8e768f42ba55270e820cedc54 Mon Sep 17 00:00:00 2001 From: Fankai Liu Date: Sun, 26 Nov 2023 22:47:04 +0800 Subject: [PATCH] refactor code --- src/utils/create_project.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/create_project.rs b/src/utils/create_project.rs index 9150742..1c5abef 100644 --- a/src/utils/create_project.rs +++ b/src/utils/create_project.rs @@ -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 { @@ -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 = [ (