Parcourir la source

chore: clippy

thesimplekid il y a 6 mois
Parent
commit
7212fa32a8
2 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 1 1
      crates/cdk-lnd/src/lib.rs
  2. 2 1
      crates/cdk-phoenixd/src/lib.rs

+ 1 - 1
crates/cdk-lnd/src/lib.rs

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

+ 2 - 1
crates/cdk-phoenixd/src/lib.rs

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