diff --git a/src/builder.rs b/src/builder.rs index af6eeb5308..27582b6af8 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -2013,7 +2013,8 @@ mod tests { fn list( &self, primary_namespace: &str, secondary_namespace: &str, - ) -> Pin, io::Error>> + 'static + Send>> { + ) -> Pin, io::Error>> + 'static + Send>> + { let res = KVStoreSync::list(self, primary_namespace, secondary_namespace); Box::pin(async move { res }) } diff --git a/src/data_store.rs b/src/data_store.rs index 796623b601..f06f270d5e 100644 --- a/src/data_store.rs +++ b/src/data_store.rs @@ -329,7 +329,8 @@ mod tests { fn list( &self, _primary_namespace: &str, _secondary_namespace: &str, - ) -> Pin, io::Error>> + 'static + Send>> { + ) -> Pin, io::Error>> + 'static + Send>> + { Box::pin(async { Err(io::Error::new(io::ErrorKind::Other, "list failed")) }) } } diff --git a/src/payment/asynchronous/static_invoice_store.rs b/src/payment/asynchronous/static_invoice_store.rs index 45125cfee3..f270eadaf3 100644 --- a/src/payment/asynchronous/static_invoice_store.rs +++ b/src/payment/asynchronous/static_invoice_store.rs @@ -96,15 +96,13 @@ impl StaticInvoiceStore { ) }) }) - .or_else( - |e| { - if e.kind() == lightning::io::ErrorKind::NotFound { - Ok(None) - } else { - Err(e) - } - }, - ) + .or_else(|e| { + if e.kind() == lightning::io::ErrorKind::NotFound { + Ok(None) + } else { + Err(e) + } + }) } pub(crate) async fn handle_persist_static_invoice( diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 3ecc2518c2..ef76ecd0ff 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -1253,7 +1253,8 @@ pub(crate) async fn do_channel_full_cycle( + invoice_amount_3_msat + determined_amount_msat + keysend_amount_msat) - / 1000 - splice_out_sat; + / 1000 + - splice_out_sat; let node_a_upper_bound_sat = (premine_amount_sat - funding_amount_sat) + (funding_amount_sat - sum_of_all_payments_sat); let node_a_lower_bound_sat = node_a_upper_bound_sat - onchain_fee_buffer_sat; diff --git a/tests/integration_tests_rust.rs b/tests/integration_tests_rust.rs index 8ce90c54d2..0ed9d68237 100644 --- a/tests/integration_tests_rust.rs +++ b/tests/integration_tests_rust.rs @@ -1445,7 +1445,8 @@ async fn async_payment() { .filter(|n| { node.network_graph().node(n).map_or(false, |info| info.announcement_info.is_some()) }) - .count() >= 2 + .count() + >= 2 }; // Wait for everyone to see all channels and node announcements.