From eb8efcb85c2dbb58cb97793b39d7ff2570389c2e Mon Sep 17 00:00:00 2001 From: Thibault Martinez Date: Mon, 25 Sep 2023 09:50:56 +0200 Subject: [PATCH] Nit --- sdk/src/client/node_api/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/src/client/node_api/mod.rs b/sdk/src/client/node_api/mod.rs index f856705045..b88a53afae 100644 --- a/sdk/src/client/node_api/mod.rs +++ b/sdk/src/client/node_api/mod.rs @@ -15,11 +15,11 @@ pub mod participation; pub mod plugin; pub(crate) fn query_tuples_to_query_string( - query: impl IntoIterator>, + tuples: impl IntoIterator>, ) -> Option { - let query = query + let query = tuples .into_iter() - .filter_map(|q| q.map(|q| format!("{}={}", q.0, q.1))) + .filter_map(|tuple| tuple.map(|(key, value)| format!("{}={}", key, value))) .collect::>(); if query.is_empty() { None } else { Some(query.join("&")) }