Skip to content

Commit e81ea30

Browse files
committed
fixing CI/CD errors
1 parent a7e4383 commit e81ea30

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lightning/src/onion_message/offers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ use crate::util::logger::Logger;
2222
use crate::util::ser::{Readable, ReadableArgs, Writeable, Writer};
2323

2424
use crate::prelude::*;
25+
use core::{fmt};
2526

2627
// TLV record types for the `onionmsg_tlv` TLV stream as defined in BOLT 4.
2728
const INVOICE_REQUEST_TLV_TYPE: u64 = 64;
@@ -74,7 +75,6 @@ pub enum OffersMessage {
7475
InvoiceError(InvoiceError),
7576
}
7677

77-
use std::fmt;
7878
impl OffersMessage {
7979
/// Returns whether `tlv_type` corresponds to a TLV record for Offers.
8080
pub fn is_known_type(tlv_type: u64) -> bool {

lightning/src/onion_message/packet.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::util::chacha20poly1305rfc::{ChaChaPolyReadAdapter, ChaChaPolyWriteAda
2323
use crate::util::logger::Logger;
2424
use crate::util::ser::{BigSize, FixedLengthReader, LengthRead, LengthReadable, LengthReadableArgs, Readable, ReadableArgs, Writeable, Writer};
2525

26-
use core::cmp;
26+
use core::{cmp,fmt};
2727
use crate::io::{self, Read};
2828
use crate::prelude::*;
2929

@@ -137,7 +137,6 @@ impl<T: OnionMessageContents> OnionMessageContents for ParsedOnionMessageContent
137137
}
138138
}
139139

140-
use std::fmt;
141140
impl<T: CustomOnionMessageContents> fmt::Display for OnionMessageContents<T> {
142141
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
143142
match self {

0 commit comments

Comments
 (0)