Remove sandbox by making application more generic 🎉
This commit is contained in:
parent
0a24611ccd
commit
28a27f08ed
23 changed files with 80 additions and 111 deletions
|
|
@ -363,15 +363,15 @@ pub type Result = std::result::Result<(), Error>;
|
|||
/// ```
|
||||
pub fn run<State, Message>(
|
||||
title: impl program::Title<State> + 'static,
|
||||
update: impl Fn(&mut State, Message) + 'static,
|
||||
update: impl program::Update<State, Message> + 'static,
|
||||
view: impl for<'a> program::View<'a, State, Message> + 'static,
|
||||
) -> Result
|
||||
where
|
||||
State: Default + 'static,
|
||||
Message: std::fmt::Debug + Send + 'static,
|
||||
{
|
||||
sandbox(title, update, view).run()
|
||||
application(title, update, view).run()
|
||||
}
|
||||
|
||||
#[doc(inline)]
|
||||
pub use program::{application, sandbox};
|
||||
pub use program::application;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue