From 94efa0c4c435a70247cb0715586e0de6cdd504f2 Mon Sep 17 00:00:00 2001 From: Artem Vorotnikov Date: Sun, 9 Oct 2022 18:56:10 +0400 Subject: [PATCH] Clippy fix --- src/types/request.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/request.rs b/src/types/request.rs index 8f3e011..e165d4a 100644 --- a/src/types/request.rs +++ b/src/types/request.rs @@ -53,7 +53,7 @@ impl RpcRequest { pub fn torrent_get(fields: Option>, ids: Option>) -> RpcRequest { let string_fields = fields - .unwrap_or(all::().collect()) + .unwrap_or_else(|| all::().collect()) .iter() .map(TorrentGetField::to_str) .collect();