Merge pull request #569 from hecrj/improvement/hide-null-executor

Remove `executor::Null` from the root public API
This commit is contained in:
Héctor Ramón 2020-10-17 21:10:59 +02:00 committed by GitHub
commit befeb32225
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -65,7 +65,7 @@ use crate::{Color, Command, Element, Executor, Settings, Subscription};
/// struct Hello; /// struct Hello;
/// ///
/// impl Application for Hello { /// impl Application for Hello {
/// type Executor = executor::Null; /// type Executor = executor::Default;
/// type Message = (); /// type Message = ();
/// type Flags = (); /// type Flags = ();
/// ///

View File

@ -1,5 +1,5 @@
//! Choose your preferred executor to power your application. //! Choose your preferred executor to power your application.
pub use crate::runtime::{executor::Null, Executor}; pub use crate::runtime::Executor;
pub use platform::Default; pub use platform::Default;

View File

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