瀏覽代碼

Refactor/adding template extension to files (#108)

Danilo Guanabara 10 月之前
父節點
當前提交
51e4e80b2f
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      cli/src/templates/program/mod.rs

+ 4 - 1
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(),