1
2
3
4
5
6
7
8
use crate::DokiError;
use nom::{error::Error, Err};

impl From<Err<Error<&str>>> for DokiError {
    fn from(e: Err<Error<&str>>) -> Self {
        DokiError::syntax_error(e.to_string())
    }
}