From c40c13c711577133c4bf16be0a9907293800fd6a Mon Sep 17 00:00:00 2001 From: Adam Leventhal Date: Tue, 6 Feb 2024 11:01:58 -0800 Subject: [PATCH] add AsRef for ResponseValue (#714) --- progenitor-client/src/progenitor_client.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/progenitor-client/src/progenitor_client.rs b/progenitor-client/src/progenitor_client.rs index 6c12560..1ce617f 100644 --- a/progenitor-client/src/progenitor_client.rs +++ b/progenitor-client/src/progenitor_client.rs @@ -216,6 +216,12 @@ impl DerefMut for ResponseValue { } } +impl AsRef for ResponseValue { + fn as_ref(&self) -> &T { + &self.inner + } +} + impl std::fmt::Debug for ResponseValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { self.inner.fmt(f)