From 31a4a78a42a125caeeab26b62af247ad7d3a81bc Mon Sep 17 00:00:00 2001 From: Edgar Date: Tue, 15 Dec 2020 10:52:09 +0100 Subject: [PATCH] clippy fix --- src/orders.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/orders.rs b/src/orders.rs index 12c516a..61a44a2 100644 --- a/src/orders.rs +++ b/src/orders.rs @@ -818,7 +818,7 @@ impl super::Client { "value": {unit} }} "#, - reference_id = unit.reference_id.clone().unwrap_or(String::from("default")), + reference_id = unit.reference_id.clone().unwrap_or_else(|| String::from("default")), unit = unit_str); if i < p_units.len() - 1 {