From e50f86e98301a5d25cb51b8038a87ee0e3411045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20Tomi=C4=87?= Date: Tue, 26 Nov 2024 14:47:01 +0100 Subject: [PATCH] clippy --- rs/cli/src/runner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rs/cli/src/runner.rs b/rs/cli/src/runner.rs index ae56c2bbc..646aa32a8 100644 --- a/rs/cli/src/runner.rs +++ b/rs/cli/src/runner.rs @@ -905,7 +905,7 @@ impl Runner { let node = all_nodes_map.get(&node.principal).expect("Node should exist"); if let Some(explanation) = cordoned_features.iter().find_map(|cf| { if node.get_feature(&cf.feature).as_ref() == Some(&cf.value) { - Some(cf.explanation.as_ref().map(|e| format!(": {}", e)).unwrap_or_else(|| "".to_string())) + Some(cf.explanation.as_ref().map(|e| format!(": {}", e)).unwrap_or_default()) } else { None }