Skip to content

Commit

Permalink
chore: fmt all code to default max width
Browse files Browse the repository at this point in the history
  • Loading branch information
enigbe committed Mar 14, 2024
1 parent 3bf6fc8 commit 5aa5f65
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions sim-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,18 @@ impl NodeId {
crate::NodeId::PublicKey(pk) => {
if pk != node_id {
return Err(LightningError::ValidationError(format!(
"the provided node id does not match the one returned by the backend ({} != {}).", pk, node_id)));
"the provided node id does not match the one returned by the backend ({} != {}).",
pk, node_id
)));
}
},
crate::NodeId::Alias(a) => {
if alias != a {
log::warn!("The provided alias does not match the one returned by the backend ({} != {}).", a, alias)
log::warn!(
"The provided alias does not match the one returned by the backend ({} != {}).",
a,
alias
)
}
*alias = a.to_string();
},
Expand Down Expand Up @@ -443,7 +449,10 @@ impl Simulation {
for node in self.nodes.values() {
let node = node.lock().await;
if !node.get_info().features.supports_keysend() {
return Err(LightningError::ValidationError(format!("All nodes eligible for random activity generation must support keysend, {} does not", node.get_info())));
return Err(LightningError::ValidationError(format!(
"All nodes eligible for random activity generation must support keysend, {} does not",
node.get_info()
)));
}
}
}
Expand Down

0 comments on commit 5aa5f65

Please sign in to comment.