Skip to content

Commit 5aa5f65

Browse files
committed
chore: fmt all code to default max width
1 parent 3bf6fc8 commit 5aa5f65

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

sim-lib/src/lib.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,18 @@ impl NodeId {
5050
crate::NodeId::PublicKey(pk) => {
5151
if pk != node_id {
5252
return Err(LightningError::ValidationError(format!(
53-
"the provided node id does not match the one returned by the backend ({} != {}).", pk, node_id)));
53+
"the provided node id does not match the one returned by the backend ({} != {}).",
54+
pk, node_id
55+
)));
5456
}
5557
},
5658
crate::NodeId::Alias(a) => {
5759
if alias != a {
58-
log::warn!("The provided alias does not match the one returned by the backend ({} != {}).", a, alias)
60+
log::warn!(
61+
"The provided alias does not match the one returned by the backend ({} != {}).",
62+
a,
63+
alias
64+
)
5965
}
6066
*alias = a.to_string();
6167
},
@@ -443,7 +449,10 @@ impl Simulation {
443449
for node in self.nodes.values() {
444450
let node = node.lock().await;
445451
if !node.get_info().features.supports_keysend() {
446-
return Err(LightningError::ValidationError(format!("All nodes eligible for random activity generation must support keysend, {} does not", node.get_info())));
452+
return Err(LightningError::ValidationError(format!(
453+
"All nodes eligible for random activity generation must support keysend, {} does not",
454+
node.get_info()
455+
)));
447456
}
448457
}
449458
}

0 commit comments

Comments
 (0)