Pacify clippy

This commit is contained in:
Michael Vines
2022-01-21 16:01:22 -08:00
parent ce4f7601af
commit 6d5bbca630
37 changed files with 157 additions and 194 deletions

View File

@ -708,9 +708,9 @@ impl ClusterInfo {
Some(format!(
"{:15} {:2}| {:5} | {:44} |{:^9}| {:5}| {:5}| {}\n",
rpc_addr.to_string(),
if node.id == my_pubkey { "me" } else { "" }.to_string(),
if node.id == my_pubkey { "me" } else { "" },
now.saturating_sub(last_updated),
node.id.to_string(),
node.id,
if let Some(node_version) = node_version {
node_version.to_string()
} else {
@ -778,9 +778,9 @@ impl ClusterInfo {
} else {
"none".to_string()
},
if node.id == my_pubkey { "me" } else { "" }.to_string(),
if node.id == my_pubkey { "me" } else { "" },
now.saturating_sub(last_updated),
node.id.to_string(),
node.id,
if let Some(node_version) = node_version {
node_version.to_string()
} else {