diff --git a/plugins/updater/src/updater.rs b/plugins/updater/src/updater.rs index d9531938..bd3b6d80 100644 --- a/plugins/updater/src/updater.rs +++ b/plugins/updater/src/updater.rs @@ -242,7 +242,10 @@ impl UpdaterBuilder { self } - pub fn on_before_request ClientBuilder + Send + Sync + 'static>(mut self, f: F) -> Self { + pub fn on_before_request ClientBuilder + Send + Sync + 'static>( + mut self, + f: F, + ) -> Self { self.on_before_request.replace(Arc::new(f)); self }