Clippy fix

This commit is contained in:
Artem Vorotnikov 2022-10-09 18:56:10 +04:00 committed by Aleksandr
parent 6a797e71d7
commit 94efa0c4c4

View File

@ -53,7 +53,7 @@ impl RpcRequest {
pub fn torrent_get(fields: Option<Vec<TorrentGetField>>, ids: Option<Vec<Id>>) -> RpcRequest {
let string_fields = fields
.unwrap_or(all::<TorrentGetField>().collect())
.unwrap_or_else(|| all::<TorrentGetField>().collect())
.iter()
.map(TorrentGetField::to_str)
.collect();