summaryrefslogtreecommitdiffstats
path: root/src/daemon.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon.rs')
-rw-r--r--src/daemon.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon.rs b/src/daemon.rs
index d2de2db7..6a6ad133 100644
--- a/src/daemon.rs
+++ b/src/daemon.rs
@@ -119,7 +119,7 @@ impl<P: Program> Daemon<P> {
pub fn run_with<I>(self, initialize: I) -> Result
where
Self: 'static,
- I: Fn() -> (P::State, Task<P::Message>) + Clone + 'static,
+ I: FnOnce() -> (P::State, Task<P::Message>) + 'static,
{
self.raw.run_with(self.settings, None, initialize)
}