Skip to content

Commit b1c8097

Browse files
committed
Fix some new indentation nits
1 parent 6e1aa6c commit b1c8097

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

fuzz/src/router.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ pub fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
221221
fees: RoutingFees {
222222
base_msat: slice_to_be32(get_slice!(4)),
223223
proportional_millionths: slice_to_be32(get_slice!(4)),
224-
}, cltv_expiry_delta: slice_to_be16(get_slice!(2)),
224+
},
225+
cltv_expiry_delta: slice_to_be16(get_slice!(2)),
225226
htlc_minimum_msat: slice_to_be64(get_slice!(8)),
226227
});
227228
}

lightning/src/ln/functional_test_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ impl<'a, 'b, 'c> Drop for Node<'a, 'b, 'c> {
104104
let network_graph_deser = <NetworkGraph>::read(&mut ::std::io::Cursor::new(&w.0)).unwrap();
105105
assert!(network_graph_deser == *self.net_graph_msg_handler.network_graph.read().unwrap());
106106
let net_graph_msg_handler = NetGraphMsgHandler::from_net_graph(
107-
Arc::clone(&self.chain_monitor) as Arc<chaininterface::ChainWatchInterface>,
108-
Arc::clone(&self.logger) as Arc<Logger>, RwLock::new(network_graph_deser)
107+
Arc::clone(&self.chain_monitor) as Arc<chaininterface::ChainWatchInterface>,
108+
Arc::clone(&self.logger) as Arc<Logger>, RwLock::new(network_graph_deser)
109109
);
110110
let mut chan_progress = 0;
111111
loop {

lightning/src/routing/network_graph.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,10 @@ impl Writeable for RoutingFees {
311311
/// Information received in the latest node_announcement from this node.
312312
pub struct NodeAnnouncementInfo {
313313
/// Protocol features the node announced support for
314-
pub features: NodeFeatures,
314+
pub features: NodeFeatures,
315315
/// When the last known update to the node state was issued.
316316
/// Value is opaque, as set in the announcement.
317-
pub last_update: u32,
317+
pub last_update: u32,
318318
/// Color assigned to the node
319319
pub rgb: [u8; 3],
320320
/// Moniker assigned to the node.
@@ -766,7 +766,7 @@ mod tests {
766766
use ln::features::{ChannelFeatures, NodeFeatures};
767767
use routing::network_graph::{NetGraphMsgHandler, NetworkGraph};
768768
use ln::msgs::{RoutingMessageHandler, UnsignedNodeAnnouncement, NodeAnnouncement,
769-
UnsignedChannelAnnouncement, ChannelAnnouncement, UnsignedChannelUpdate, ChannelUpdate, HTLCFailChannelUpdate};
769+
UnsignedChannelAnnouncement, ChannelAnnouncement, UnsignedChannelUpdate, ChannelUpdate, HTLCFailChannelUpdate};
770770
use util::test_utils;
771771
use util::logger::Logger;
772772
use util::ser::{Readable, Writeable};
@@ -845,7 +845,7 @@ mod tests {
845845
// Announce a channel to add a corresponding node.
846846
let unsigned_announcement = UnsignedChannelAnnouncement {
847847
features: ChannelFeatures::known(),
848-
chain_hash: genesis_block(Network::Testnet).header.bitcoin_hash(),
848+
chain_hash: genesis_block(Network::Testnet).header.bitcoin_hash(),
849849
short_channel_id: 0,
850850
node_id_1,
851851
node_id_2,

0 commit comments

Comments
 (0)