diff options
| author | Botahamec <botahamec@outlook.com> | 2022-10-23 15:32:26 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2022-10-23 15:32:26 -0400 |
| commit | ed3203298032bb124d309f19dab8926ed5a95bd2 (patch) | |
| tree | 2af36e7cc99793ce623492a0689c36cf96f2b52c | |
| parent | 70963422d67630e3821a832d4650c4743782e805 (diff) | |
Implemented AsRef
| -rw-r--r-- | src/unexpected.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unexpected.rs b/src/unexpected.rs index 3b27a9f..ed99e1f 100644 --- a/src/unexpected.rs +++ b/src/unexpected.rs @@ -139,3 +139,9 @@ impl Error for UnexpectedError { self.0.source() } } + +impl AsRef<RawUnexpected> for UnexpectedError { + fn as_ref(&self) -> &RawUnexpected { + &self.0 + } +} |
