feat: network: add from impl to help discard unit NetResponses
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
ece13d43a2
commit
053b9a5f98
1 changed files with 6 additions and 0 deletions
|
@ -36,3 +36,9 @@ impl<T> NetResponse<T> {
|
|||
self.response_body
|
||||
}
|
||||
}
|
||||
|
||||
impl From<NetResponse<()>> for () {
|
||||
fn from(_value: NetResponse<()>) -> Self {
|
||||
// ()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue