chore: run cargo fmt

This commit is contained in:
pasta 2024-10-02 13:50:48 -05:00
parent 1b6e7edb6b
commit d480b14bea
No known key found for this signature in database
GPG key ID: E2F3D7916E722D38
2 changed files with 9 additions and 6 deletions

View file

@ -40,8 +40,12 @@ impl SerializedTorrent {
let add_torrent = if !self.torrent_bytes.is_empty() {
AddTorrent::TorrentFileBytes(self.torrent_bytes)
} else {
let magnet =
Magnet::from_id20(self.info_hash, self.trackers.into_iter().collect(), self.only_files.clone()).to_string();
let magnet = Magnet::from_id20(
self.info_hash,
self.trackers.into_iter().collect(),
self.only_files.clone(),
)
.to_string();
AddTorrent::from_url(magnet)
};