From 053b9a5f98c21de80e3430e03bdabc92218bcbac Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 6 Jun 2024 07:09:21 +0100 Subject: [PATCH] feat: network: add from impl to help discard unit NetResponses --- src/network/net_response.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/network/net_response.rs b/src/network/net_response.rs index c92b5de..c65dfed 100644 --- a/src/network/net_response.rs +++ b/src/network/net_response.rs @@ -36,3 +36,9 @@ impl NetResponse { self.response_body } } + +impl From> for () { + fn from(_value: NetResponse<()>) -> Self { + // () + } +}