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

@@ -91,7 +91,7 @@ impl<'x> RematchObject<'x> for PlainText<'x> {
break;
}
let is_not_whitespace = is_not::<&str, &str, CustomError<_>>(" \t\r\n")(goal);
let is_not_whitespace = is_not::<_, _, CustomError>(" \t\r\n")(goal);
if let Ok((new_goal, payload)) = is_not_whitespace {
let (new_remaining, _) = tuple((
tag_no_case(payload),
@@ -107,7 +107,7 @@ impl<'x> RematchObject<'x> for PlainText<'x> {
}
let is_whitespace = recognize(many1(alt((
recognize(one_of::<&str, &str, CustomError<_>>(" \t")),
recognize(one_of::<_, _, CustomError>(" \t")),
line_ending,
))))(goal);
if let Ok((new_goal, _)) = is_whitespace {