From 8ac49ef0c2cf0b46b2ad7afb705fa28c41b49249 Mon Sep 17 00:00:00 2001 From: Fankai Liu Date: Sun, 26 Nov 2023 19:34:26 +0800 Subject: [PATCH] refactor code --- src/utils/create_project.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/create_project.rs b/src/utils/create_project.rs index a95d0af..6edf14c 100644 --- a/src/utils/create_project.rs +++ b/src/utils/create_project.rs @@ -653,9 +653,7 @@ fn create_basic_file( for (file_name, template) in &templates { render_and_write_to_file(handlebars, template, &data, project_path.join(file_name))?; } - let router_path = src_path.join("routers"); - std::fs::create_dir_all(&router_path)?; - Ok((src_path)) + Ok(src_path) } fn handle_dependencies(