summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-16 19:14:13 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-16 19:14:13 +0100
commit28a27f08edccd53e06ad693e63b0a62dae921da5 (patch)
treed2a2f51ebc9fddd38771abfbd567522396763468 /runtime
parent0a24611ccdb9402f89c88fd5f567b9d26e3533c2 (diff)
downloadiced-28a27f08edccd53e06ad693e63b0a62dae921da5.tar.gz
iced-28a27f08edccd53e06ad693e63b0a62dae921da5.tar.bz2
iced-28a27f08edccd53e06ad693e63b0a62dae921da5.zip
Remove `sandbox` by making `application` more generic :tada:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/command.rs6
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;