diff options
author | 2024-03-16 19:14:13 +0100 | |
---|---|---|
committer | 2024-03-16 19:14:13 +0100 | |
commit | 28a27f08edccd53e06ad693e63b0a62dae921da5 (patch) | |
tree | d2a2f51ebc9fddd38771abfbd567522396763468 /src/lib.rs | |
parent | 0a24611ccdb9402f89c88fd5f567b9d26e3533c2 (diff) | |
download | iced-28a27f08edccd53e06ad693e63b0a62dae921da5.tar.gz iced-28a27f08edccd53e06ad693e63b0a62dae921da5.tar.bz2 iced-28a27f08edccd53e06ad693e63b0a62dae921da5.zip |
Remove `sandbox` by making `application` more generic :tada:
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 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; |