From ed8f67eb533784a6f05a62ac85471c397892b773 Mon Sep 17 00:00:00 2001
From: librelois <c@elo.tf>
Date: Thu, 13 Jan 2022 18:51:18 +0100
Subject: [PATCH] fix clippy warning

---
 integration-tests/tests/common/mod.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/integration-tests/tests/common/mod.rs b/integration-tests/tests/common/mod.rs
index 3ae39edaa..90770ed3e 100644
--- a/integration-tests/tests/common/mod.rs
+++ b/integration-tests/tests/common/mod.rs
@@ -41,8 +41,8 @@ impl Drop for Process {
 }
 
 pub async fn spawn_node() -> (Api, Client, Process) {
-    let duniter_binary_path =
-        std::env::var("DUNITER_BINARY_PATH").unwrap_or("../target/debug/duniter".to_owned());
+    let duniter_binary_path = std::env::var("DUNITER_BINARY_PATH")
+        .unwrap_or_else(|_| "../target/debug/duniter".to_owned());
 
     let p2p_port = portpicker::pick_unused_port().expect("No ports free");
     let rpc_port = portpicker::pick_unused_port().expect("No ports free");
-- 
GitLab