From 4171733090d25732029a149cf0976c6b1103d0ea Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 28 Mar 2024 08:30:57 +0000 Subject: refactor: allow pedantic clippy warning large_futures rust-nostr author suggested this might be a false positive https://github.com/rust-nostr/nostr/pull/375#issuecomment-2022245832 --- src/client.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/client.rs b/src/client.rs index e271a9f..2dbd238 100644 --- a/src/client.rs +++ b/src/client.rs @@ -124,6 +124,7 @@ impl Connect for Client { async fn send_event_to(&self, url: &str, event: Event) -> Result { self.client.add_relay(url).await?; + #[allow(clippy::large_futures)] self.client.connect_relay(url).await?; Ok(self.client.send_event_to(vec![url], event).await?) } @@ -200,6 +201,7 @@ impl Connect for Client { } else { None }; + #[allow(clippy::large_futures)] match get_events_of(relay, filters, &pb).await { Err(error) => { if let Some(pb) = pb { @@ -246,6 +248,7 @@ async fn get_events_of( pb: &Option, ) -> Result> { if !relay.is_connected().await { + #[allow(clippy::large_futures)] relay.connect(None).await; } -- cgit v1.2.3