summaryrefslogtreecommitdiffstats
path: root/futures/src/maybe_send.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-19 20:41:52 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-19 20:41:52 +0100
commit1781068e1c3a65551db1e832fdbaddba99124051 (patch)
tree60e0b3854cc0541712572fbb0e56f14435951ea9 /futures/src/maybe_send.rs
parent41dec5bd203ff5b1574a33a17d5f7358ae1beea2 (diff)
parent7ae7fcb89855002519bab752fd3686106ce448db (diff)
downloadiced-1781068e1c3a65551db1e832fdbaddba99124051.tar.gz
iced-1781068e1c3a65551db1e832fdbaddba99124051.tar.bz2
iced-1781068e1c3a65551db1e832fdbaddba99124051.zip
Merge branch 'master' into remove-vertex-indexing
Diffstat (limited to 'futures/src/maybe_send.rs')
-rw-r--r--futures/src/maybe_send.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/futures/src/maybe_send.rs b/futures/src/maybe_send.rs
deleted file mode 100644
index a6670f0e..00000000
--- a/futures/src/maybe_send.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-#[cfg(not(target_arch = "wasm32"))]
-mod platform {
- /// An extension trait that enforces `Send` only on native platforms.
- ///
- /// Useful to write cross-platform async code!
- pub trait MaybeSend: Send {}
-
- impl<T> MaybeSend for T where T: Send {}
-}
-
-#[cfg(target_arch = "wasm32")]
-mod platform {
- /// An extension trait that enforces `Send` only on native platforms.
- ///
- /// Useful to write cross-platform async code!
- pub trait MaybeSend {}
-
- impl<T> MaybeSend for T {}
-}
-
-pub use platform::MaybeSend;