impl From for (String, u32)
This commit is contained in:
parent
aec6704e8f
commit
348616dddf
|
@ -26,8 +26,8 @@ pub struct YacError {
|
|||
pub message: String,
|
||||
}
|
||||
|
||||
impl<T> From<YacError> for Result<T, (String, u32)> {
|
||||
impl From<YacError> for (String, u32) {
|
||||
fn from(err: YacError) -> Self {
|
||||
Err((err.message, err.code))
|
||||
(err.message, err.code)
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue