From ac56dd9205177bacd9d3975e8b85a687bbd3511d Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 13 Mar 2024 21:45:51 +0800 Subject: [PATCH] Clean up --- plugins/updater/src/updater.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }