yac
/
yacexits
Archived
3
0
Fork 0

impl From for (String, u32)

This commit is contained in:
Emma Tebibyte 2023-03-26 21:53:01 -04:00
parent aec6704e8f
commit 348616dddf
Signed by: emma
GPG Key ID: 6D661C738815E7DD
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}