Skip to content

Commit 5963624

Browse files
committed
rustfmt: Run on lightning/src/ln/features.rs
1 parent d488858 commit 5963624

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lightning/src/ln/features.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99

1010
//! Implementations of extensions on features.
1111
12-
use lightning_types::features::{InitFeatures, NodeFeatures, ChannelFeatures};
13-
use lightning_types::features::{Bolt11InvoiceFeatures, OfferFeatures, InvoiceRequestFeatures};
14-
use lightning_types::features::{Bolt12InvoiceFeatures, BlindedHopFeatures};
1512
use lightning_types::features::ChannelTypeFeatures;
13+
use lightning_types::features::{BlindedHopFeatures, Bolt12InvoiceFeatures};
14+
use lightning_types::features::{Bolt11InvoiceFeatures, InvoiceRequestFeatures, OfferFeatures};
15+
use lightning_types::features::{ChannelFeatures, InitFeatures, NodeFeatures};
1616

1717
#[allow(unused_imports)]
1818
use crate::prelude::*;
1919

20-
use crate::{io, io_extras};
2120
use crate::ln::msgs::DecodeError;
22-
use crate::util::ser::{Writer, Readable, Writeable, WithoutLength};
21+
use crate::util::ser::{Readable, WithoutLength, Writeable, Writer};
22+
use crate::{io, io_extras};
2323

2424
fn write_be<W: Writer>(w: &mut W, le_flags: &[u8]) -> Result<(), io::Error> {
2525
// Swap back to big-endian
@@ -43,7 +43,7 @@ macro_rules! impl_feature_len_prefixed_write {
4343
Ok(Self::from_be_bytes(Vec::<u8>::read(r)?))
4444
}
4545
}
46-
}
46+
};
4747
}
4848
impl_feature_len_prefixed_write!(InitFeatures);
4949
impl_feature_len_prefixed_write!(ChannelFeatures);
@@ -65,7 +65,7 @@ macro_rules! impl_feature_tlv_write {
6565
Ok(WithoutLength::<Self>::read(r)?.0)
6666
}
6767
}
68-
}
68+
};
6969
}
7070

7171
impl_feature_tlv_write!(ChannelTypeFeatures);
@@ -87,7 +87,7 @@ macro_rules! impl_feature_write_without_length {
8787
Ok(WithoutLength($features::from_be_bytes(v)))
8888
}
8989
}
90-
}
90+
};
9191
}
9292

9393
impl_feature_write_without_length!(Bolt12InvoiceFeatures);

0 commit comments

Comments
 (0)