chore: clippy

This commit is contained in:
thesimplekid
2024-10-06 19:36:28 +02:00
parent e09084f02d
commit 7212fa32a8
2 changed files with 3 additions and 2 deletions

View File

@@ -138,7 +138,7 @@ impl MintLightning for Lnd {
// Stream is cancelled // Stream is cancelled
is_active.store(false, Ordering::SeqCst); is_active.store(false, Ordering::SeqCst);
tracing::info!("Waiting for lnd invoice ending"); tracing::info!("Waiting for lnd invoice ending");
return None; None
} }
msg = stream.message() => { msg = stream.message() => {

View File

@@ -100,6 +100,7 @@ impl MintLightning for Phoenixd {
self.wait_invoice_cancel_token.cancel() self.wait_invoice_cancel_token.cancel()
} }
#[allow(clippy::incompatible_msrv)]
async fn wait_any_invoice( async fn wait_any_invoice(
&self, &self,
) -> Result<Pin<Box<dyn Stream<Item = String> + Send>>, Self::Err> { ) -> Result<Pin<Box<dyn Stream<Item = String> + Send>>, Self::Err> {
@@ -126,7 +127,7 @@ impl MintLightning for Phoenixd {
// Stream is cancelled // Stream is cancelled
is_active.store(false, Ordering::SeqCst); is_active.store(false, Ordering::SeqCst);
tracing::info!("Waiting for phonixd invoice ending"); tracing::info!("Waiting for phonixd invoice ending");
return None; None
} }
msg_option = receiver.recv() => { msg_option = receiver.recv() => {
match msg_option { match msg_option {