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

This commit is contained in:
Paul Campbell 2024-06-06 07:09:21 +01:00
parent d0aee99c83
commit 274f70e485

View file

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