1 2 3 4 5 6 7 8 9
use crate::RuntimeError; use dashu::base::ConversionError; use diagnostic::DiagnosticLevel; impl From<ConversionError> for RuntimeError { fn from(value: ConversionError) -> Self { Self { info: value.to_string(), level: DiagnosticLevel::Error } } }