@@ -124,8 +124,7 @@ pub struct UpdaterBuilder {
124124impl UpdaterBuilder {
125125 pub ( crate ) fn new < R : Runtime > ( app : & AppHandle < R > , config : crate :: Config ) -> Self {
126126 let app_ = app. clone ( ) ;
127- let run_on_main_thread =
128- move |f : Box < dyn FnOnce ( ) + Send + Sync + ' static > | app_. run_on_main_thread ( f) ;
127+ let run_on_main_thread = move |f| app_. run_on_main_thread ( f) ;
129128 Self {
130129 run_on_main_thread : Box :: new ( run_on_main_thread) ,
131130 installer_args : config
@@ -230,8 +229,7 @@ impl UpdaterBuilder {
230229 I : IntoIterator < Item = S > ,
231230 S : Into < OsString > ,
232231 {
233- let args = args. into_iter ( ) . map ( |a| a. into ( ) ) . collect :: < Vec < _ > > ( ) ;
234- self . installer_args . extend_from_slice ( & args) ;
232+ self . installer_args . extend ( args. into_iter ( ) . map ( Into :: into) ) ;
235233 self
236234 }
237235
@@ -312,8 +310,7 @@ impl UpdaterBuilder {
312310 I : IntoIterator < Item = S > ,
313311 S : Into < OsString > ,
314312 {
315- let args = args. into_iter ( ) . map ( |a| a. into ( ) ) . collect :: < Vec < _ > > ( ) ;
316- self . current_exe_args . extend_from_slice ( & args) ;
313+ self . installer_args . extend ( args. into_iter ( ) . map ( Into :: into) ) ;
317314 self
318315 }
319316}
@@ -478,10 +475,10 @@ impl Updater {
478475 version : release. version . to_string ( ) ,
479476 date : release. pub_date ,
480477 download_url : release. download_url ( & self . json_target ) ?. to_owned ( ) ,
481- body : release. notes . clone ( ) ,
482478 signature : release. signature ( & self . json_target ) ?. to_owned ( ) ,
479+ body : release. notes ,
483480 raw_json : raw_json. unwrap ( ) ,
484- timeout : self . timeout ,
481+ timeout : None ,
485482 proxy : self . proxy . clone ( ) ,
486483 headers : self . headers . clone ( ) ,
487484 installer_args : self . installer_args . clone ( ) ,
0 commit comments