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

memfd
Manos Pitsidianakis 2020-07-27 15:03:48 +03:00
parent 3152411f22
commit 52cec59215
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 7 additions and 0 deletions

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