diff --git a/plugins/updater/src/updater.rs b/plugins/updater/src/updater.rs index 0bb9c7996..5ba070dc7 100644 --- a/plugins/updater/src/updater.rs +++ b/plugins/updater/src/updater.rs @@ -89,7 +89,7 @@ impl RemoteRelease { } } -pub type OnBeforeExit = Arc () + Send + Sync + 'static>; +pub type OnBeforeExit = Arc; pub struct UpdaterBuilder { current_version: Version, @@ -202,7 +202,7 @@ impl UpdaterBuilder { self } - pub fn on_before_exit () + Send + Sync + 'static>(mut self, f: F) -> Self { + pub fn on_before_exit(mut self, f: F) -> Self { self.on_before_exit.replace(Arc::new(f)); self }