Skip to content

Commit 35bb2d0

Browse files
committed
Drop trailing semicolons which rustc nightly generates warnings for
1 parent 879e309 commit 35bb2d0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lightning/src/ln/functional_tests.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ fn test_fee_spike_violation_fails_htlc() {
15831583
let route = get_route(&nodes[0].node.get_our_node_id(), net_graph_msg_handler, &nodes.last().unwrap().node.get_our_node_id(), None, &Vec::new(), $recv_value, TEST_FINAL_CLTV, &logger).unwrap();
15841584
(route, payment_hash, payment_preimage)
15851585
}}
1586-
};
1586+
}
15871587

15881588
let (route, payment_hash, _) = get_route_and_payment_hash!(3460001);
15891589
// Need to manually create the update_add_htlc message to go around the channel reserve check in send_htlc()
@@ -1722,7 +1722,7 @@ fn test_chan_reserve_violation_outbound_htlc_inbound_chan() {
17221722
let route = get_route(&nodes[1].node.get_our_node_id(), &net_graph_msg_handler.network_graph.read().unwrap(), &nodes.first().unwrap().node.get_our_node_id(), None, &Vec::new(), $recv_value, TEST_FINAL_CLTV, &logger).unwrap();
17231723
(route, payment_hash, payment_preimage)
17241724
}}
1725-
};
1725+
}
17261726

17271727
let (route, our_payment_hash, _) = get_route_and_payment_hash!(1000);
17281728
unwrap_send_err!(nodes[1].node.send_payment(&route, our_payment_hash, &None), true, APIError::ChannelUnavailable { ref err },
@@ -1754,7 +1754,7 @@ fn test_chan_reserve_violation_inbound_htlc_outbound_channel() {
17541754
let route = get_route(&nodes[1].node.get_our_node_id(), &net_graph_msg_handler.network_graph.read().unwrap(), &nodes.first().unwrap().node.get_our_node_id(), None, &Vec::new(), $recv_value, TEST_FINAL_CLTV, &logger).unwrap();
17551755
(route, payment_hash, payment_preimage)
17561756
}}
1757-
};
1757+
}
17581758

17591759
let (route, payment_hash, _) = get_route_and_payment_hash!(1000);
17601760
// Need to manually create the update_add_htlc message to go around the channel reserve check in send_htlc()
@@ -1799,7 +1799,7 @@ fn test_chan_reserve_violation_inbound_htlc_inbound_chan() {
17991799
let route = get_route(&nodes[0].node.get_our_node_id(), &net_graph_msg_handler.network_graph.read().unwrap(), &nodes.last().unwrap().node.get_our_node_id(), None, &Vec::new(), $recv_value, TEST_FINAL_CLTV, &logger).unwrap();
18001800
(route, payment_hash, payment_preimage)
18011801
}}
1802-
};
1802+
}
18031803

18041804
let feemsat = 239;
18051805
let total_routing_fee_msat = (nodes.len() - 2) as u64 * feemsat;
@@ -1900,7 +1900,7 @@ fn test_channel_reserve_holding_cell_htlcs() {
19001900
let route = get_route(&nodes[0].node.get_our_node_id(), &net_graph_msg_handler.network_graph.read().unwrap(), &nodes.last().unwrap().node.get_our_node_id(), None, &Vec::new(), $recv_value, TEST_FINAL_CLTV, &logger).unwrap();
19011901
(route, payment_hash, payment_preimage)
19021902
}}
1903-
};
1903+
}
19041904

19051905
macro_rules! expect_forward {
19061906
($node: expr) => {{

lightning/src/util/chacha20.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ mod test {
328328
key: [u8; 32],
329329
nonce: [u8; 8],
330330
keystream: Vec<u8>,
331-
};
331+
}
332332
// taken from http://tools.ietf.org/html/draft-agl-tls-chacha20poly1305-04
333333
let test_vectors = vec!(
334334
TestVector{
@@ -463,7 +463,7 @@ mod test {
463463
key: [u8; 32],
464464
nonce: [u8; 12],
465465
keystream: Vec<u8>,
466-
};
466+
}
467467
// taken from http://tools.ietf.org/html/draft-agl-tls-chacha20poly1305-04
468468
let test_vectors = vec!(
469469
TestVector{

0 commit comments

Comments
 (0)