From d0eee43f3c931329a5e9d15a7b4a4423285a249e Mon Sep 17 00:00:00 2001 From: Laurent Querel Date: Mon, 3 Jun 2024 17:48:10 -0700 Subject: [PATCH] chore(test): Add back the `default_templates` method to make weaver_forge unit tests happy again. --- crates/weaver_forge/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/weaver_forge/src/config.rs b/crates/weaver_forge/src/config.rs index c165def0..f4cbe5ed 100644 --- a/crates/weaver_forge/src/config.rs +++ b/crates/weaver_forge/src/config.rs @@ -81,11 +81,11 @@ pub(crate) struct TargetConfig { /// Parameters for the templates. /// These parameters can be overridden by parameters passed to the CLI. - #[serde(default = "default_templates")] + #[serde(default)] pub(crate) params: HashMap, /// Configuration for the templates. - #[serde(default)] + #[serde(default = "default_templates")] pub(crate) templates: Vec, /// List of acronyms to be considered as unmodifiable words in the case