Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Legend-Master committed Mar 13, 2024
1 parent 6d5702a commit ac56dd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/updater/src/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl RemoteRelease {
}
}

pub type OnBeforeExit = Arc<dyn Fn() -> () + Send + Sync + 'static>;
pub type OnBeforeExit = Arc<dyn Fn() + Send + Sync + 'static>;

pub struct UpdaterBuilder {
current_version: Version,
Expand Down Expand Up @@ -202,7 +202,7 @@ impl UpdaterBuilder {
self
}

pub fn on_before_exit<F: Fn() -> () + Send + Sync + 'static>(mut self, f: F) -> Self {
pub fn on_before_exit<F: Fn() + Send + Sync + 'static>(mut self, f: F) -> Self {
self.on_before_exit.replace(Arc::new(f));
self
}
Expand Down

0 comments on commit ac56dd9

Please sign in to comment.