diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-23 02:37:58 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-23 02:59:45 +0800 |
| commit | 137c41af5336d06351d95a37788401dd093efe19 (patch) | |
| tree | 4646f736f315e928a32320e28f68777807e24503 /templates/renderer_list.rs.template | |
| parent | 47bf9b75f6dd8c2d3c3f1fb947a16e0e055f49cf (diff) | |
Fix: convert renderer_list to .rs to stop RA false errors
Diffstat (limited to 'templates/renderer_list.rs.template')
| -rw-r--r-- | templates/renderer_list.rs.template | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/renderer_list.rs.template b/templates/renderer_list.rs.template new file mode 100644 index 0000000..37f0f1b --- /dev/null +++ b/templates/renderer_list.rs.template @@ -0,0 +1,16 @@ +match renderer_str { +// MATCH +// -- TEMPLATE START -- + "<<NAME>>" => { + Self::process_with_renderer::< + RendererType + >(args, ctx) + .await + } +// -- TEMPLATE END -- + _ => { + return Err(CmdProcessError::Render(CmdRenderError::RendererNotFound( + renderer_str.to_string(), + ))); + } +} |
