1 2 3 4 5 6 7 8
use crate::{errors::UnityErrorKind, UnityError}; use uuid::Error; impl From<Error> for UnityError { fn from(error: Error) -> Self { Self { kind: Box::new(UnityErrorKind::SyntaxError { text: "".to_string(), message: error.to_string() }) } } }