From 3eb8908cbafffc0a925744c19b4d92ca5b3c07ee Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Mon, 5 May 2025 13:49:09 +0200 Subject: [PATCH] Make the check functions on templates crate private This will report if we forget to use one of the check function. --- crates/templates/src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/templates/src/macros.rs b/crates/templates/src/macros.rs index b3ed9d60a..8fae68237 100644 --- a/crates/templates/src/macros.rs +++ b/crates/templates/src/macros.rs @@ -75,7 +75,7 @@ macro_rules! register_templates { /// # Errors /// /// Returns an error if the template fails to render with any of the sample. - pub fn $name + pub(crate) fn $name $(< $( $lt $( : $clt $(+ $dlt )* + TemplateContext )? ),+ >)? (templates: &Templates, now: chrono::DateTime, rng: &mut impl rand::Rng) -> anyhow::Result<()> {