Skip to content

Commit 8c081d6

Browse files
authored
Merge pull request #890 from lightningdevkit/create-pull-request/patch
Automated nightly rustfmt (2026-04-26)
2 parents d1daf45 + d434aeb commit 8c081d6

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2165,9 +2165,10 @@ pub(crate) fn new_channel_anchor_reserve_sats(
21652165

21662166
#[cfg(test)]
21672167
mod tests {
2168-
use super::*;
21692168
use lightning::util::ser::{Readable, Writeable};
21702169

2170+
use super::*;
2171+
21712172
#[test]
21722173
fn node_metrics_reads_legacy_rgs_snapshot_timestamp() {
21732174
// Pre-#615, `NodeMetrics` persisted `latest_rgs_snapshot_timestamp` as an optional

src/types.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@ use std::future::Future;
1010
use std::pin::Pin;
1111
use std::sync::{Arc, Mutex};
1212

13+
use bitcoin::secp256k1::PublicKey;
14+
use bitcoin::{OutPoint, ScriptBuf};
1315
use bitcoin_payment_instructions::amount::Amount as BPIAmount;
1416
use bitcoin_payment_instructions::dns_resolver::DNSHrnResolver;
1517
use bitcoin_payment_instructions::hrn_resolution::{
1618
HrnResolutionFuture, HrnResolver, HumanReadableName, LNURLResolutionFuture,
1719
};
1820
use bitcoin_payment_instructions::onion_message_resolver::LDKOnionMessageDNSSECHrnResolver;
19-
20-
use bitcoin::secp256k1::PublicKey;
21-
use bitcoin::{OutPoint, ScriptBuf};
22-
2321
use lightning::chain::chainmonitor;
2422
use lightning::impl_writeable_tlv_based;
2523
use lightning::ln::channel_state::{ChannelDetails as LdkChannelDetails, ChannelShutdownState};

0 commit comments

Comments
 (0)