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 } ;
1512use 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) ]
1818use crate :: prelude:: * ;
1919
20- use crate :: { io, io_extras} ;
2120use 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
2424fn 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}
4848impl_feature_len_prefixed_write ! ( InitFeatures ) ;
4949impl_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
7171impl_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
9393impl_feature_write_without_length ! ( Bolt12InvoiceFeatures ) ;
0 commit comments