summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index cda5341c..ae6bb344 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;