templater: don't attribute method table functions as pub

It's unlikely that these functions are used by external callers.
This commit is contained in:
Yuya Nishihara 2025-04-27 10:55:04 +09:00
parent 27a35a79b1
commit 4f3e7e972d

View File

@ -2239,7 +2239,7 @@ impl CryptographicSignature {
}
}
pub fn builtin_cryptographic_signature_methods<'repo>(
fn builtin_cryptographic_signature_methods<'repo>(
) -> CommitTemplateBuildMethodFnMap<'repo, CryptographicSignature> {
type L<'repo> = CommitTemplateLanguage<'repo>;
// Not using maplit::hashmap!{} or custom declarative macro here because
@ -2284,8 +2284,8 @@ pub struct AnnotationLine {
pub first_line_in_hunk: bool,
}
pub fn builtin_annotation_line_methods<'repo>(
) -> CommitTemplateBuildMethodFnMap<'repo, AnnotationLine> {
fn builtin_annotation_line_methods<'repo>() -> CommitTemplateBuildMethodFnMap<'repo, AnnotationLine>
{
type L<'repo> = CommitTemplateLanguage<'repo>;
let mut map = CommitTemplateBuildMethodFnMap::<AnnotationLine>::new();
map.insert(