mirror of
https://github.com/kristoferssolo/transmission-rpc.git
synced 2025-10-21 20:10:37 +00:00
Clippy fix
This commit is contained in:
parent
6a797e71d7
commit
94efa0c4c4
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user