Skip to content

Commit 3eb8908

Browse files
committed
Make the check functions on templates crate private
This will report if we forget to use one of the check function.
1 parent 2590b7d commit 3eb8908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/templates/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ macro_rules! register_templates {
7575
/// # Errors
7676
///
7777
/// Returns an error if the template fails to render with any of the sample.
78-
pub fn $name
78+
pub(crate) fn $name
7979
$(< $( $lt $( : $clt $(+ $dlt )* + TemplateContext )? ),+ >)?
8080
(templates: &Templates, now: chrono::DateTime<chrono::Utc>, rng: &mut impl rand::Rng)
8181
-> anyhow::Result<()> {

0 commit comments

Comments
 (0)