mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 11:45:02 +01:00
todo
This commit is contained in:
parent
30f9070cca
commit
30fe45b169
1 changed files with 1 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ impl<T> nom::error::ParseError<T> for TransError {
|
|||
}
|
||||
}
|
||||
|
||||
// todo: make this into fail_err to avoid useless allocations
|
||||
pub fn err<S: Into<String>>(msg: S) -> impl FnOnce(Err<TransError>) -> Err<TransError> {
|
||||
move |err| {
|
||||
let error_level = if matches!(err, nom::Err::Failure(_)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue