feat: network: add from impl to help discard unit NetResponses
This commit is contained in:
parent
d0aee99c83
commit
274f70e485
1 changed files with 6 additions and 0 deletions
|
@ -36,3 +36,9 @@ impl<T> NetResponse<T> {
|
||||||
self.response_body
|
self.response_body
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<NetResponse<()>> for () {
|
||||||
|
fn from(_value: NetResponse<()>) -> Self {
|
||||||
|
// ()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue