File tree 4 files changed +3
-7
lines changed
4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,7 @@ pub mod util;
76
76
pub mod chain;
77
77
pub mod ln;
78
78
pub mod routing;
79
- #[ allow( unused) ]
80
- mod onion_message; // To be exposed after sending/receiving OMs is supported in PeerManager.
79
+ pub mod onion_message;
81
80
82
81
#[ cfg( feature = "std" ) ]
83
82
/// Re-export of either `core2::io` or `std::io`, depending on the `std` feature flag.
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ use super::utils;
16
16
use util:: chacha20poly1305rfc:: ChaChaPolyWriteAdapter ;
17
17
use util:: ser:: { VecWriter , Writeable , Writer } ;
18
18
19
- use core:: iter:: FromIterator ;
20
19
use io;
21
20
use prelude:: * ;
22
21
Original file line number Diff line number Diff line change @@ -35,9 +35,7 @@ use prelude::*;
35
35
///
36
36
/// # Example
37
37
///
38
- // Needs to be `ignore` until the `onion_message` module is made public, otherwise this is a test
39
- // failure.
40
- /// ```ignore
38
+ /// ```
41
39
/// # extern crate bitcoin;
42
40
/// # use bitcoin::hashes::_export::_core::time::Duration;
43
41
/// # use bitcoin::secp256k1::{PublicKey, Secp256k1, SecretKey};
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl LengthReadable for Packet {
74
74
while read_idx < hop_data_len {
75
75
let mut read_buffer = [ 0 ; READ_BUFFER_SIZE ] ;
76
76
let read_amt = cmp:: min ( hop_data_len - read_idx, READ_BUFFER_SIZE ) ;
77
- r. read_exact ( & mut read_buffer[ ..read_amt] ) ;
77
+ r. read_exact ( & mut read_buffer[ ..read_amt] ) ? ;
78
78
hop_data. extend_from_slice ( & read_buffer[ ..read_amt] ) ;
79
79
read_idx += read_amt;
80
80
}
You can’t perform that action at this time.
0 commit comments