Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed Nov 26, 2024
1 parent 6aa9d23 commit e50f86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rs/cli/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e50f86e

Please sign in to comment.