summaryrefslogtreecommitdiffstats
path: root/src/sandbox.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-03-31 17:49:56 +0200
committerLibravatar GitHub <noreply@github.com>2020-03-31 17:49:56 +0200
commite79e832092385346beec47f63e40f24800c535f8 (patch)
treec29df36b1987de66a58cfb981c5958d25712d51e /src/sandbox.rs
parent327347501c78a1c8e55a39fe1b5d54d7c2fcbcab (diff)
parentf0ebcc24742aba79cc779a4145a188f2534a5e35 (diff)
downloadiced-e79e832092385346beec47f63e40f24800c535f8.tar.gz
iced-e79e832092385346beec47f63e40f24800c535f8.tar.bz2
iced-e79e832092385346beec47f63e40f24800c535f8.zip
Merge pull request #246 from hecrj/feature/application-flags
Application flags
Diffstat (limited to '')
-rw-r--r--src/sandbox.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sandbox.rs b/src/sandbox.rs
index 2c0332ff..4ea8de98 100644
--- a/src/sandbox.rs
+++ b/src/sandbox.rs
@@ -121,7 +121,7 @@ pub trait Sandbox {
/// It should probably be that last thing you call in your `main` function.
///
/// [`Sandbox`]: trait.Sandbox.html
- fn run(settings: Settings)
+ fn run(settings: Settings<()>)
where
Self: 'static + Sized,
{
@@ -134,9 +134,10 @@ where
T: Sandbox,
{
type Executor = executor::Null;
+ type Flags = ();
type Message = T::Message;
- fn new() -> (Self, Command<T::Message>) {
+ fn new(_flags: ()) -> (Self, Command<T::Message>) {
(T::new(), Command::none())
}