summaryrefslogtreecommitdiffstats
path: root/futures/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-01-28 18:34:14 +0100
committerLibravatar GitHub <noreply@github.com>2023-01-28 18:34:14 +0100
commitcffffff2ddffc6e8d4e430c94ba9d89e4acda44c (patch)
tree2057c57df0c36096d1c3cd6334bc16e767f8169e /futures/src
parent818ae4977a36c30a61492f85afa96e261c5d7167 (diff)
parent42b1bfe66d2407901c1ae640f80ce9e0d3c64b60 (diff)
downloadiced-cffffff2ddffc6e8d4e430c94ba9d89e4acda44c.tar.gz
iced-cffffff2ddffc6e8d4e430c94ba9d89e4acda44c.tar.bz2
iced-cffffff2ddffc6e8d4e430c94ba9d89e4acda44c.zip
Merge pull request #1681 from pop-os/fix-lints
Fix Clippy Lints
Diffstat (limited to 'futures/src')
-rw-r--r--futures/src/backend/native/async_std.rs1
-rw-r--r--futures/src/backend/native/tokio.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/futures/src/backend/native/async_std.rs b/futures/src/backend/native/async_std.rs
index e8641626..b324dbf1 100644
--- a/futures/src/backend/native/async_std.rs
+++ b/futures/src/backend/native/async_std.rs
@@ -10,6 +10,7 @@ impl crate::Executor for Executor {
Ok(Self)
}
+ #[allow(clippy::let_underscore_future)]
fn spawn(&self, future: impl Future<Output = ()> + Send + 'static) {
let _ = async_std::task::spawn(future);
}
diff --git a/futures/src/backend/native/tokio.rs b/futures/src/backend/native/tokio.rs
index f86b0ea3..dd818bd1 100644
--- a/futures/src/backend/native/tokio.rs
+++ b/futures/src/backend/native/tokio.rs
@@ -9,6 +9,7 @@ impl crate::Executor for Executor {
tokio::runtime::Runtime::new()
}
+ #[allow(clippy::let_underscore_future)]
fn spawn(&self, future: impl Future<Output = ()> + Send + 'static) {
let _ = tokio::runtime::Runtime::spawn(self, future);
}