Apply more suggestions.
This commit is contained in:
@@ -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.",
|
||||
))))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user