From 03003aec99fc00c2a079bad9fb4e721432a6e6f0 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 29 Jun 2026 03:11:13 +0800 Subject: feat: add CHANGELOG and simplify tmpl! macro syntax Introduce a CHANGELOG.md file and update the `tmpl!` macro to use a cleaner syntax with comma-separated key-value pairs instead of the `+=` operator and parentheses-wrapped parameters --- src/test.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/test.rs') diff --git a/src/test.rs b/src/test.rs index a5ef801..91407fc 100644 --- a/src/test.rs +++ b/src/test.rs @@ -15,12 +15,12 @@ mod tests { let mut tmpl = Template::from(input); tmpl_param!(tmpl, func_name = "my_func"); - tmpl!(tmpl += { + tmpl!(tmpl, arms { - (crate_name = "my"), - (crate_name = "you") + crate_name = "my", + crate_name = "you", } - }); + ); let expanded = tmpl.expand().unwrap(); assert_eq!(expanded, expect); -- cgit