feat: network: add from impl to help discard unit NetResponses
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Paul Campbell 2024-06-06 07:09:21 +01:00
parent ece13d43a2
commit 053b9a5f98

View file

@ -36,3 +36,9 @@ impl<T> NetResponse<T> {
self.response_body self.response_body
} }
} }
impl From<NetResponse<()>> for () {
fn from(_value: NetResponse<()>) -> Self {
// ()
}
}