Apply more suggestions.

This commit is contained in:
Tom Alexander
2023-10-16 17:28:28 -04:00
parent b4f9a3b9b6
commit 1d329cc310
8 changed files with 43 additions and 45 deletions

View File

@@ -30,4 +30,5 @@ pub use global_settings::GlobalSettings;
pub use global_settings::HeadlineLevelFilter;
pub use global_settings::DEFAULT_TAB_WIDTH;
pub(crate) use list::List;
pub(crate) use parser_with_context::bind_context;
pub(crate) use parser_with_context::parser_with_context;

View File

@@ -4,3 +4,10 @@ macro_rules! parser_with_context {
};
}
pub(crate) use parser_with_context;
macro_rules! bind_context {
($target:expr, $context:expr) => {
move |i| $target($context, i)
};
}
pub(crate) use bind_context;