From 01b945b9814b9dc546e783a6dab66e4f7fe49786 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 13 Sep 2021 11:22:53 +0700 Subject: Write missing docs and `Debug` implementations for `web` --- web/src/command/action.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'web/src/command/action.rs') diff --git a/web/src/command/action.rs b/web/src/command/action.rs index cf384f07..c0223e50 100644 --- a/web/src/command/action.rs +++ b/web/src/command/action.rs @@ -2,6 +2,8 @@ pub enum Action { Future(iced_futures::BoxFuture), } +use std::fmt; + impl Action { /// Applies a transformation to the result of a [`Command`]. #[cfg(target_arch = "wasm32")] @@ -16,3 +18,11 @@ impl Action { } } } + +impl fmt::Debug for Action { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match self { + Self::Future(_) => write!(f, "Action::Future"), + } + } +} -- cgit