diff options
Diffstat (limited to 'src/sandbox.rs')
-rw-r--r-- | src/sandbox.rs | 5 |
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()) } |