summaryrefslogtreecommitdiffstats
path: root/web/src/command
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 16:47:50 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 21:37:16 +0700
commit825c7749ff364cf1f7ae5cab0c25f27ed85c7d82 (patch)
treefdd7e499c343a7e3cf690d4b5aa40ba568674a3c /web/src/command
parent1e3feee3a36f25d7e2eda231c3e6b895858952c5 (diff)
downloadiced-825c7749ff364cf1f7ae5cab0c25f27ed85c7d82.tar.gz
iced-825c7749ff364cf1f7ae5cab0c25f27ed85c7d82.tar.bz2
iced-825c7749ff364cf1f7ae5cab0c25f27ed85c7d82.zip
Replace `iced_web` with WebGL support in `wgpu` :tada:
Diffstat (limited to 'web/src/command')
-rw-r--r--web/src/command/action.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/web/src/command/action.rs b/web/src/command/action.rs
deleted file mode 100644
index c0223e50..00000000
--- a/web/src/command/action.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-pub enum Action<T> {
- Future(iced_futures::BoxFuture<T>),
-}
-
-use std::fmt;
-
-impl<T> Action<T> {
- /// Applies a transformation to the result of a [`Command`].
- #[cfg(target_arch = "wasm32")]
- pub fn map<A>(self, f: impl Fn(T) -> A + 'static) -> Action<A>
- where
- T: 'static,
- {
- use iced_futures::futures::FutureExt;
-
- match self {
- Self::Future(future) => Action::Future(Box::pin(future.map(f))),
- }
- }
-}
-
-impl<T> fmt::Debug for Action<T> {
- fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- match self {
- Self::Future(_) => write!(f, "Action::Future"),
- }
- }
-}