Continue removing MyError.

This commit is contained in:
Tom Alexander
2023-10-17 10:09:37 -04:00
parent c9d7251e3b
commit 77e6c22ad8
29 changed files with 84 additions and 128 deletions

View File

@@ -250,9 +250,7 @@ fn _element<'b, 'g, 'r, 's>(
);
}
Err(nom::Err::Error(CustomError::MyError(MyError(
"No element.",
))))
Err(nom::Err::Error(CustomError::Static("No element.")))
}
pub(crate) const fn detect_element(
@@ -322,7 +320,5 @@ fn _detect_element<'b, 'g, 'r, 's>(
return Ok((input, ()));
}
Err(nom::Err::Error(CustomError::MyError(MyError(
"No element detected.",
))))
Err(nom::Err::Error(CustomError::Static("No element detected.")))
}