Apply more suggestions.

This commit is contained in:
Tom Alexander
2023-10-16 18:29:21 -04:00
parent 4b6c717812
commit 3069711447
22 changed files with 86 additions and 114 deletions

View File

@@ -301,9 +301,7 @@ fn _detect_element<'b, 'g, 'r, 's>(
input
);
if let Ok((_, _)) = detect_comment(input) {
return Ok((input, ()));
}
element!(detect_comment, input);
ak_element!(
detect_fixed_width_area,
@@ -326,6 +324,6 @@ fn _detect_element<'b, 'g, 'r, 's>(
}
Err(nom::Err::Error(CustomError::MyError(MyError(
"No element detected.".into(),
"No element detected.",
))))
}