From 2c630809d403f7fa87c3230be031299e5fb3af17 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 13 Sep 2021 11:20:54 +0700 Subject: Write missing docs and `Debug` implementations for `native` --- native/src/command.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'native/src/command.rs') 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 Command { command.actions() } } + +impl fmt::Debug for Command { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let Command(command) = self; + + command.fmt(f) + } +} -- cgit