From 05141fd3a056f1395e7e9c6c0efce52414bada80 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Thu, 24 Aug 2023 14:18:24 +0100 Subject: [PATCH] fix: type for parsed torrent metadata using intermodal console app The announce_list is an array of arrays in the intermodal JSON output: ``` "announce-list": [ [ "https://academictorrents.com/announce.php" ], [ "https://ipv6.academictorrents.com/announce.php" ], [ "udp://tracker.opentrackr.org:1337/announce" ], [ "udp://tracker.openbittorrent.com:80/announce" ], [ "http://bt1.archive.org:6969/announce" ], [ "http://bt2.archive.org:6969/announce" ] ], ``` Not an array of strings. --- tests/common/contexts/torrent/file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common/contexts/torrent/file.rs b/tests/common/contexts/torrent/file.rs index e06b1385..ce3fbf95 100644 --- a/tests/common/contexts/torrent/file.rs +++ b/tests/common/contexts/torrent/file.rs @@ -20,7 +20,7 @@ pub struct TorrentFileInfo { pub content_size: u64, pub private: bool, pub tracker: Option, - pub announce_list: Vec, + pub announce_list: Vec>, pub update_url: Option, pub dht_nodes: Vec, pub piece_size: u64,