Remove executor::Null from the root public API

Using an `Application` with `executor::Null` does not make sense, as the
whole purpose of an `Application` is to allow executing async actions.

When async actions are not needed, `Sandbox` should be used instead.
This commit is contained in:
Héctor Ramón Jiménez 2020-10-17 08:46:16 +02:00
parent 17f0db57c3
commit ae5a2502d6
3 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,3 @@
use crate::executor;
use crate::{
Application, Color, Command, Element, Error, Settings, Subscription,
};
@ -172,7 +171,7 @@ impl<T> Application for T
where
T: Sandbox,
{
type Executor = executor::Null;
type Executor = crate::runtime::executor::Null;
type Flags = ();
type Message = T::Message;