mirror of
https://github.com/greatest-ape/aquatic.git
synced 2026-10-23 01:41:20 +00:00
http_protocol: skip serializing AnnounceResponse.warning_message if None
This commit is contained in:
1 parent
92b62e73ca
commit
6eb1375e4e
1 file changed
+1
-1
@@ -51,7 +51,7 @@ pub struct AnnounceResponse {
|
||||
pub peers: ResponsePeerListV4,
|
||||
#[serde(default)]
|
||||
pub peers6: ResponsePeerListV6,
|
||||
#[serde(rename = "warning message")]
|
||||
#[serde(rename = "warning message", skip_serializing_if = "Option::is_none")]
|
||||
pub warning_message: Option<String>,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user