Make "announce-list" optional
This commit is contained in:
parent
c19d757be4
commit
3428de8f3d
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ pub fn torrent_from_bytes<'de, ByteBuf: Deserialize<'de>>(
|
|||
#[derive(Deserialize, Debug, Clone)]
|
||||
pub struct TorrentMetaV1<BufType> {
|
||||
pub announce: BufType,
|
||||
#[serde(rename = "announce-list")]
|
||||
#[serde(rename = "announce-list", default = "Vec::new")]
|
||||
pub announce_list: Vec<Vec<BufType>>,
|
||||
pub info: TorrentMetaV1Info<BufType>,
|
||||
pub comment: Option<BufType>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue