Skip to content

Commit f361aa6

Browse files
Add missing import path in ser macro
1 parent 46fd703 commit f361aa6

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use crate::chain::keysinterface::{EntropySource, NodeSigner, Recipient};
1717
use crate::ln::{PaymentHash, PaymentPreimage, PaymentSecret};
1818
use crate::ln::channelmanager::{ChannelDetails, HTLCSource, IDEMPOTENCY_TIMEOUT_TICKS, PaymentId};
1919
use crate::ln::channelmanager::MIN_FINAL_CLTV_EXPIRY_DELTA as LDK_DEFAULT_MIN_FINAL_CLTV_EXPIRY_DELTA;
20-
use crate::ln::msgs::DecodeError;
2120
use crate::ln::onion_utils::HTLCFailReason;
2221
use crate::routing::router::{InFlightHtlcs, PaymentParameters, Route, RouteHop, RouteParameters, RoutePath, Router};
2322
use crate::util::errors::APIError;

lightning/src/util/events.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use crate::ln::channelmanager::{InterceptId, PaymentId};
2121
use crate::ln::channel::FUNDING_CONF_DEADLINE_BLOCKS;
2222
use crate::ln::features::ChannelTypeFeatures;
2323
use crate::ln::msgs;
24-
use crate::ln::msgs::DecodeError;
2524
use crate::ln::{PaymentPreimage, PaymentHash, PaymentSecret};
2625
use crate::routing::gossip::NetworkUpdate;
2726
use crate::util::ser::{BigSize, FixedLengthReader, Writeable, Writer, MaybeReadable, Readable, WithoutLength, OptionDeserWrapper};

lightning/src/util/ser_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ macro_rules! impl_writeable_tlv_based_enum_upgradable {
949949
Ok(Some($st::$tuple_variant_name(Readable::read(reader)?)))
950950
}),*)*
951951
_ if id % 2 == 1 => Ok(None),
952-
_ => Err(DecodeError::UnknownRequiredFeature),
952+
_ => Err($crate::ln::msgs::DecodeError::UnknownRequiredFeature),
953953
}
954954
}
955955
}

0 commit comments

Comments
 (0)