summaryrefslogtreecommitdiff
path: root/templates/_specific_renderer_matching.rs.template
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-02-28 12:35:07 +0800
committer魏曹先生 <1992414357@qq.com>2026-02-28 12:35:07 +0800
commitafddded8fdab6925a83f1240999ebac8f76f239d (patch)
tree16d692f32e15824863907156ad1d4ed8c7b29576 /templates/_specific_renderer_matching.rs.template
parenta469c6684619c9677dfc1125886acc37f24c81d4 (diff)
Replace manual template processing with just_template library
Diffstat (limited to 'templates/_specific_renderer_matching.rs.template')
-rw-r--r--templates/_specific_renderer_matching.rs.template17
1 files changed, 9 insertions, 8 deletions
diff --git a/templates/_specific_renderer_matching.rs.template b/templates/_specific_renderer_matching.rs.template
index 4f1c7d2..bd41406 100644
--- a/templates/_specific_renderer_matching.rs.template
+++ b/templates/_specific_renderer_matching.rs.template
@@ -1,12 +1,13 @@
// Auto generated by build.rs
match type_id {
-// MATCHING
-// -- TEMPLATE START --
- type_id if type_id == std::any::TypeId::of::<OutputType>() => {
- RendererType::render(
- &data.downcast::<OutputType>()
- .unwrap()).await
- },
-// -- TEMPLATE END --
+>>>>>>>>>> renderer_match_arms
_ => Err(CmdRenderError::RendererNotFound(format!("{:?}", type_id)))
}
+
+@@@ >>> renderer_match_arms
+ type_id if type_id == std::any::TypeId::of::<<<<output_type>>>>() => {
+ <<<renderer_type>>>::render(
+ &data.downcast::<<<<output_type>>>>()
+ .unwrap()).await
+ },
+@@@ <<<