Skip to content

Commit 7db92ff

Browse files
committed
Add rustfmt::skip where needed
1 parent 959d9fb commit 7db92ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/ln/onion_utils.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,7 @@ impl_writeable_tlv_based_enum!(HTLCFailReasonRepr,
797797
;);
798798

799799
impl HTLCFailReason {
800+
#[rustfmt::skip]
800801
pub(super) fn reason(failure_code: u16, data: Vec<u8>) -> Self {
801802
const BADONION: u16 = 0x8000;
802803
const PERM: u16 = 0x4000;
@@ -1008,6 +1009,7 @@ fn decode_next_hop<T, R: ReadableArgs<T>, N: NextPacketBytes>(shared_secret: [u8
10081009
let mut chacha_stream = ChaChaReader { chacha: &mut chacha, read: Cursor::new(&hop_data[..]) };
10091010
match R::read(&mut chacha_stream, read_args) {
10101011
Err(err) => {
1012+
#[rustfmt::skip]
10111013
let error_code = match err {
10121014
msgs::DecodeError::UnknownVersion => 0x4000 | 1, // unknown realm byte
10131015
msgs::DecodeError::UnknownRequiredFeature|

0 commit comments

Comments
 (0)