mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-05 23:42:50 +00:00
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:
parent
27a35a79b1
commit
4f3e7e972d
@ -2239,7 +2239,7 @@ impl CryptographicSignature {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn builtin_cryptographic_signature_methods<'repo>(
|
fn builtin_cryptographic_signature_methods<'repo>(
|
||||||
) -> CommitTemplateBuildMethodFnMap<'repo, CryptographicSignature> {
|
) -> CommitTemplateBuildMethodFnMap<'repo, CryptographicSignature> {
|
||||||
type L<'repo> = CommitTemplateLanguage<'repo>;
|
type L<'repo> = CommitTemplateLanguage<'repo>;
|
||||||
// Not using maplit::hashmap!{} or custom declarative macro here because
|
// Not using maplit::hashmap!{} or custom declarative macro here because
|
||||||
@ -2284,8 +2284,8 @@ pub struct AnnotationLine {
|
|||||||
pub first_line_in_hunk: bool,
|
pub first_line_in_hunk: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn builtin_annotation_line_methods<'repo>(
|
fn builtin_annotation_line_methods<'repo>() -> CommitTemplateBuildMethodFnMap<'repo, AnnotationLine>
|
||||||
) -> CommitTemplateBuildMethodFnMap<'repo, AnnotationLine> {
|
{
|
||||||
type L<'repo> = CommitTemplateLanguage<'repo>;
|
type L<'repo> = CommitTemplateLanguage<'repo>;
|
||||||
let mut map = CommitTemplateBuildMethodFnMap::<AnnotationLine>::new();
|
let mut map = CommitTemplateBuildMethodFnMap::<AnnotationLine>::new();
|
||||||
map.insert(
|
map.insert(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user