From 51e4e80b2faafcd223f95773c3ef901088095add Mon Sep 17 00:00:00 2001 From: Danilo Guanabara Date: Mon, 2 Dec 2024 04:03:06 -0300 Subject: [PATCH] Refactor/adding template extension to files (#108) --- cli/src/templates/program/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/src/templates/program/mod.rs b/cli/src/templates/program/mod.rs index 8770505..6f67f38 100644 --- a/cli/src/templates/program/mod.rs +++ b/cli/src/templates/program/mod.rs @@ -33,7 +33,10 @@ pub fn create_program_template_multiple(name: &str, program_path: &Path) -> File src_path.join("constants.rs"), include_str!("constants.rs.template").into(), ), - (src_path.join("error.rs"), include_str!("error.rs.template").into()), + ( + src_path.join("error.rs"), + include_str!("error.rs.template").into(), + ), ( src_path.join("instructions").join("mod.rs"), include_str!("instructions/mod.rs.template").into(),