diff options
Diffstat (limited to 'native/src/command.rs')
-rw-r--r-- | native/src/command.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/native/src/command.rs b/native/src/command.rs index 1d41539b..6fe518d7 100644 --- a/native/src/command.rs +++ b/native/src/command.rs @@ -1,7 +1,9 @@ +//! Run asynchronous actions. mod action; pub use action::Action; +use std::fmt; use std::future::Future; /// A set of asynchronous actions to be performed by some runtime. @@ -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) + } +} |