melib/error: add From<&MeliError> for MeliError

This commit is contained in:
Manos Pitsidianakis 2020-07-27 15:03:48 +03:00
parent 3152411f22
commit 52cec59215
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

View File

@ -327,3 +327,10 @@ impl<'a> From<&'a mut MeliError> for MeliError {
kind.clone()
}
}
impl<'a> From<&'a MeliError> for MeliError {
#[inline]
fn from(kind: &'a MeliError) -> MeliError {
kind.clone()
}
}