Switch to i32 for tracking bracket depth.

This commit is contained in:
Tom Alexander
2023-08-29 11:07:00 -04:00
parent 14b1d0526c
commit bd97d2f69d
7 changed files with 26 additions and 26 deletions

View File

@@ -121,7 +121,7 @@ fn footnote_reference_only<'r, 's>(
}
fn footnote_definition_end(
starting_bracket_depth: isize,
starting_bracket_depth: i32,
) -> impl for<'r, 's> Fn(Context<'r, 's>, OrgSource<'s>) -> Res<OrgSource<'s>, OrgSource<'s>> {
move |context: Context, input: OrgSource<'_>| {
_footnote_definition_end(context, input, starting_bracket_depth)
@@ -132,7 +132,7 @@ fn footnote_definition_end(
fn _footnote_definition_end<'r, 's>(
_context: Context<'r, 's>,
input: OrgSource<'s>,
starting_bracket_depth: isize,
starting_bracket_depth: i32,
) -> Res<OrgSource<'s>, OrgSource<'s>> {
let current_depth = input.get_bracket_depth() - starting_bracket_depth;
if current_depth > 0 {