Skip to content

Commit 8bf2184

Browse files
committed
Fix Formattting Issues
1 parent 2e75be9 commit 8bf2184

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
@@ -855,7 +855,9 @@ impl ArcedNodeBuilder {
855855
}
856856

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

src/payment/bolt12.rs

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

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

0 commit comments

Comments
 (0)