diff options
author | 2021-09-13 11:22:53 +0700 | |
---|---|---|
committer | 2021-09-13 11:24:28 +0700 | |
commit | 01b945b9814b9dc546e783a6dab66e4f7fe49786 (patch) | |
tree | dbc5db40ac2ed11770994e6d65666d81caab7f2e /web/src/command.rs | |
parent | 2c630809d403f7fa87c3230be031299e5fb3af17 (diff) | |
download | iced-01b945b9814b9dc546e783a6dab66e4f7fe49786.tar.gz iced-01b945b9814b9dc546e783a6dab66e4f7fe49786.tar.bz2 iced-01b945b9814b9dc546e783a6dab66e4f7fe49786.zip |
Write missing docs and `Debug` implementations for `web`
Diffstat (limited to 'web/src/command.rs')
-rw-r--r-- | web/src/command.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/web/src/command.rs b/web/src/command.rs index f222795d..33e49e70 100644 --- a/web/src/command.rs +++ b/web/src/command.rs @@ -2,6 +2,8 @@ mod action; pub use action::Action; +use std::fmt; + #[cfg(target_arch = "wasm32")] use std::future::Future; @@ -60,3 +62,11 @@ impl<T> Command<T> { command.actions() } } + +impl<T> fmt::Debug for Command<T> { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let Command(command) = self; + + command.fmt(f) + } +} |