Eliminate some closures.

This commit is contained in:
Tom Alexander
2023-10-17 11:10:18 -04:00
parent 369d3e8c50
commit bc9bd4f97b
3 changed files with 36 additions and 7 deletions

View File

@@ -22,6 +22,7 @@ use super::org_source::BracketDepth;
use super::org_source::OrgSource;
use super::util::get_consumed;
use super::util::maybe_consume_trailing_whitespace_if_not_exiting;
use crate::context::bind_context;
use crate::context::parser_with_context;
use crate::context::RefContext;
use crate::error::CustomError;
@@ -107,7 +108,7 @@ pub(crate) fn affiliated_keyword<'b, 'g, 'r, 's>(
context: RefContext<'b, 'g, 'r, 's>,
input: OrgSource<'s>,
) -> Res<OrgSource<'s>, Keyword<'s>> {
filtered_keyword(parser_with_context!(affiliated_key)(context))(input)
filtered_keyword(bind_context!(affiliated_key, context))(input)
}
#[cfg_attr(