Continue removing MyError.

This commit is contained in:
Tom Alexander
2023-10-17 10:35:33 -04:00
parent e776a051ad
commit 20c4a0f8f7
13 changed files with 29 additions and 37 deletions

View File

@@ -261,7 +261,7 @@ pub(crate) fn protocol<'b, 'g, 'r, 's>(
input: OrgSource<'s>,
) -> Res<OrgSource<'s>, OrgSource<'s>> {
for link_parameter in context.get_global_settings().link_parameters {
let result = tag_no_case::<_, _, CustomError<_>>(*link_parameter)(input);
let result = tag_no_case::<_, _, CustomError>(*link_parameter)(input);
if let Ok((remaining, ent)) = result {
return Ok((remaining, ent));
}
@@ -324,8 +324,7 @@ fn impl_path_plain_end<'b, 'g, 'r, 's>(
}
if current_depth == 0 {
let close_parenthesis =
tag::<&str, OrgSource<'_>, CustomError<OrgSource<'_>>>(")")(remaining);
let close_parenthesis = tag::<_, _, CustomError>(")")(remaining);
if close_parenthesis.is_ok() {
return close_parenthesis;
}
@@ -415,13 +414,13 @@ fn _path_plain_parenthesis_end<'s>(
unreachable!("Exceeded plain link parenthesis depth.")
}
if current_depth == 0 {
let close_parenthesis = tag::<&str, OrgSource<'_>, CustomError<OrgSource<'_>>>(")")(input);
let close_parenthesis = tag::<_, _, CustomError>(")")(input);
if close_parenthesis.is_ok() {
return close_parenthesis;
}
}
if current_depth == 1 {
let open_parenthesis = tag::<&str, OrgSource<'_>, CustomError<OrgSource<'_>>>("(")(input);
let open_parenthesis = tag::<_, _, CustomError>("(")(input);
if open_parenthesis.is_ok() {
return open_parenthesis;
}