diff options
Diffstat (limited to 'runtime/src/command.rs')
-rw-r--r-- | runtime/src/command.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/src/command.rs b/runtime/src/command.rs index f70da915..f7a746fe 100644 --- a/runtime/src/command.rs +++ b/runtime/src/command.rs @@ -112,6 +112,12 @@ impl<T> Command<T> { } } +impl<Message> From<()> for Command<Message> { + fn from(_value: ()) -> Self { + Self::none() + } +} + impl<T> fmt::Debug for Command<T> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let Command(command) = self; |