@@ -124,8 +124,7 @@ pub struct UpdaterBuilder {
124
124
impl UpdaterBuilder {
125
125
pub ( crate ) fn new < R : Runtime > ( app : & AppHandle < R > , config : crate :: Config ) -> Self {
126
126
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) ;
129
128
Self {
130
129
run_on_main_thread : Box :: new ( run_on_main_thread) ,
131
130
installer_args : config
@@ -230,8 +229,7 @@ impl UpdaterBuilder {
230
229
I : IntoIterator < Item = S > ,
231
230
S : Into < OsString > ,
232
231
{
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) ) ;
235
233
self
236
234
}
237
235
@@ -312,8 +310,7 @@ impl UpdaterBuilder {
312
310
I : IntoIterator < Item = S > ,
313
311
S : Into < OsString > ,
314
312
{
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) ) ;
317
314
self
318
315
}
319
316
}
@@ -478,10 +475,10 @@ impl Updater {
478
475
version : release. version . to_string ( ) ,
479
476
date : release. pub_date ,
480
477
download_url : release. download_url ( & self . json_target ) ?. to_owned ( ) ,
481
- body : release. notes . clone ( ) ,
482
478
signature : release. signature ( & self . json_target ) ?. to_owned ( ) ,
479
+ body : release. notes ,
483
480
raw_json : raw_json. unwrap ( ) ,
484
- timeout : self . timeout ,
481
+ timeout : None ,
485
482
proxy : self . proxy . clone ( ) ,
486
483
headers : self . headers . clone ( ) ,
487
484
installer_args : self . installer_args . clone ( ) ,
0 commit comments