Skip to content

Commit

Permalink
Make "announce-list" optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Jul 11, 2023
1 parent c19d757 commit 3428de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/librqbit_core/src/torrent_metainfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit 3428de8

Please sign in to comment.