Skip to content

Commit 4f28f28

Browse files
committed
chore: Clippy fixes
1 parent 870264b commit 4f28f28

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

aruna-doctor/src/iroh_check.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,7 @@ fn target_output(endpoint_info: &InfoResponse, endpoint_addr: &EndpointAddr) ->
243243
IrohCheckTarget {
244244
realm_id: endpoint_info.net_state.realm_id.clone(),
245245
node_id: endpoint_info.net_state.node_id.clone(),
246-
endpoint_addr: serde_json::to_value(endpoint_addr)
247-
.unwrap_or_else(|_| serde_json::Value::Null),
246+
endpoint_addr: serde_json::to_value(endpoint_addr).unwrap_or(serde_json::Value::Null),
248247
addresses: endpoint_addr
249248
.addrs
250249
.iter()

0 commit comments

Comments
 (0)