Skip to main content

doki_error/error_3rd/
for_nom.rs

1use crate::DokiError;
2use nom::{error::Error, Err};
3
4impl From<Err<Error<&str>>> for DokiError {
5    fn from(e: Err<Error<&str>>) -> Self {
6        DokiError::syntax_error(e.to_string())
7    }
8}