fix: improve ecies error fatal variants (#11303)

This commit is contained in:
caglarkaya
2024-09-28 15:21:20 +03:00
committed by GitHub
parent 375acdfedc
commit b090578b77
2 changed files with 28 additions and 2 deletions

View File

@ -13,6 +13,11 @@ impl ECIESError {
pub fn into_inner(self) -> ECIESErrorImpl {
*self.inner
}
/// Returns a reference to the inner error
pub const fn inner(&self) -> &ECIESErrorImpl {
&self.inner
}
}
impl fmt::Display for ECIESError {