summaryrefslogtreecommitdiff
path: root/src/unexpected.rs
diff options
context:
space:
mode:
authorBotahamec <botahamec@outlook.com>2022-10-23 15:32:26 -0400
committerBotahamec <botahamec@outlook.com>2022-10-23 15:32:26 -0400
commited3203298032bb124d309f19dab8926ed5a95bd2 (patch)
tree2af36e7cc99793ce623492a0689c36cf96f2b52c /src/unexpected.rs
parent70963422d67630e3821a832d4650c4743782e805 (diff)
Implemented AsRef
Diffstat (limited to 'src/unexpected.rs')
-rw-r--r--src/unexpected.rs6
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
+ }
+}