Skip to content

Commit 60578ef

Browse files
committed
Fix Formattting Issues
1 parent 8420d3e commit 60578ef

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/builder.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,9 @@ impl ArcedNodeBuilder {
857857
}
858858

859859
/// Sets the default dns_resolvers to be used when sending payments to HRNs.
860-
pub fn set_dns_resolvers(&self, dns_resolvers_node_ids: Vec<PublicKey>) -> Result<(), BuildError> {
860+
pub fn set_dns_resolvers(
861+
&self, dns_resolvers_node_ids: Vec<PublicKey>,
862+
) -> Result<(), BuildError> {
861863
self.inner.write().unwrap().set_dns_resolvers(dns_resolvers_node_ids).map(|_| ())
862864
}
863865

src/payment/bolt12.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ impl Bolt12Payment {
265265
/// This can be used to pay so-called "zero-amount" offers, i.e., an offer that leaves the
266266
/// amount paid to be determined by the user.
267267
///
268-
/// If `dns_resolvers` in Config is set to `None`, this operation will fail.
268+
/// If `dns_resolvers_node_ids` in Config is set to `None`, this operation will fail.
269269
pub fn send_to_human_readable_name(
270270
&self, name: &str, amount_msat: u64,
271271
) -> Result<PaymentId, Error> {
@@ -287,13 +287,9 @@ impl Bolt12Payment {
287287
None => Err(Error::DnsResolversNotConfigured),
288288
}?;
289289

290-
let destinations: Vec<Destination> = dns_resolvers
291-
.into_iter()
292-
.map(|public_key| {
293-
Destination::Node(public_key)
294-
})
295-
.collect();
296-
290+
let destinations: Vec<Destination> =
291+
dns_resolvers.into_iter().map(|public_key| Destination::Node(public_key)).collect();
292+
297293
match self.channel_manager.pay_for_offer_from_human_readable_name(
298294
hrn.clone(),
299295
amount_msat,

0 commit comments

Comments
 (0)