summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/application.rs3
-rw-r--r--src/program.rs5
2 files changed, 3 insertions, 5 deletions
diff --git a/src/application.rs b/src/application.rs
index 8317abcb..a44d6342 100644
--- a/src/application.rs
+++ b/src/application.rs
@@ -192,7 +192,8 @@ where
/// [`Error`]: crate::Error
fn run(settings: Settings<Self::Flags>) -> crate::Result
where
- Self: 'static,
+ Self::Message: 'static,
+ Self::Executor: 'static,
{
#[allow(clippy::needless_update)]
let renderer_settings = crate::renderer::Settings {
diff --git a/src/program.rs b/src/program.rs
index 7a366585..c423f6d0 100644
--- a/src/program.rs
+++ b/src/program.rs
@@ -166,10 +166,7 @@ impl<P: Definition> Program<P> {
/// Runs the underlying [`Application`] of the [`Program`] with a
/// closure that creates the initial state.
- pub fn run_with(
- self,
- initialize: impl Fn() -> P::State + Clone + 'static,
- ) -> Result
+ pub fn run_with(self, initialize: impl Fn() -> P::State + Clone) -> Result
where
Self: 'static,
{