9
9
10
10
//! Implementations of extensions on features.
11
11
12
- use lightning_types:: features:: { InitFeatures , NodeFeatures , ChannelFeatures } ;
13
- use lightning_types:: features:: { Bolt11InvoiceFeatures , OfferFeatures , InvoiceRequestFeatures } ;
14
- use lightning_types:: features:: { Bolt12InvoiceFeatures , BlindedHopFeatures } ;
15
12
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 } ;
16
16
17
17
#[ allow( unused_imports) ]
18
18
use crate :: prelude:: * ;
19
19
20
- use crate :: { io, io_extras} ;
21
20
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} ;
23
23
24
24
fn write_be < W : Writer > ( w : & mut W , le_flags : & [ u8 ] ) -> Result < ( ) , io:: Error > {
25
25
// Swap back to big-endian
@@ -43,7 +43,7 @@ macro_rules! impl_feature_len_prefixed_write {
43
43
Ok ( Self :: from_be_bytes( Vec :: <u8 >:: read( r) ?) )
44
44
}
45
45
}
46
- }
46
+ } ;
47
47
}
48
48
impl_feature_len_prefixed_write ! ( InitFeatures ) ;
49
49
impl_feature_len_prefixed_write ! ( ChannelFeatures ) ;
@@ -65,7 +65,7 @@ macro_rules! impl_feature_tlv_write {
65
65
Ok ( WithoutLength :: <Self >:: read( r) ?. 0 )
66
66
}
67
67
}
68
- }
68
+ } ;
69
69
}
70
70
71
71
impl_feature_tlv_write ! ( ChannelTypeFeatures ) ;
@@ -87,7 +87,7 @@ macro_rules! impl_feature_write_without_length {
87
87
Ok ( WithoutLength ( $features:: from_be_bytes( v) ) )
88
88
}
89
89
}
90
- }
90
+ } ;
91
91
}
92
92
93
93
impl_feature_write_without_length ! ( Bolt12InvoiceFeatures ) ;
0 commit comments