Fix unrelated warnings
[rust-lightning] / lightning-net-tokio / src / lib.rs
index 37c9ddad76204ee68dda7656a81772bb97ef6fca..48f1736d0c2296988c5d0f7c2c110421d5ca319f 100644 (file)
@@ -189,7 +189,7 @@ impl Connection {
                        // our timeslice to another task we may just spin on this peer, starving other peers
                        // and eventually disconnecting them for ping timeouts. Instead, we explicitly yield
                        // here.
-                       tokio::task::yield_now().await;
+                       let _ = tokio::task::yield_now().await;
                };
                let writer_option = us.lock().unwrap().writer.take();
                if let Some(mut writer) = writer_option {