Merge pull request #569 from hecrj/improvement/hide-null-executor
Remove `executor::Null` from the root public API
This commit is contained in:
commit
befeb32225
@ -65,7 +65,7 @@ use crate::{Color, Command, Element, Executor, Settings, Subscription};
|
||||
/// struct Hello;
|
||||
///
|
||||
/// impl Application for Hello {
|
||||
/// type Executor = executor::Null;
|
||||
/// type Executor = executor::Default;
|
||||
/// type Message = ();
|
||||
/// type Flags = ();
|
||||
///
|
||||
|
@ -1,5 +1,5 @@
|
||||
//! Choose your preferred executor to power your application.
|
||||
pub use crate::runtime::{executor::Null, Executor};
|
||||
pub use crate::runtime::Executor;
|
||||
|
||||
pub use platform::Default;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user