@@ -210,7 +210,7 @@ impl Rust {
210210
211211 if options. no_watch {
212212 let ( tx, rx) = sync_channel ( 1 ) ;
213- self . run_dev ( options, run_args, move |status, reason| {
213+ self . run_dev ( options, & run_args, move |status, reason| {
214214 on_exit ( status, reason) ;
215215 tx. send ( ( ) ) . unwrap ( ) ;
216216 } ) ?;
@@ -225,9 +225,11 @@ impl Rust {
225225 & merge_configs,
226226 |rust : & mut Rust , _config| {
227227 let on_exit = on_exit. clone ( ) ;
228- rust. run_dev ( options. clone ( ) , run_args. clone ( ) , move |status, reason| {
229- on_exit ( status, reason)
230- } )
228+ rust
229+ . run_dev ( options. clone ( ) , & run_args, move |status, reason| {
230+ on_exit ( status, reason)
231+ } )
232+ . map ( |child| Box :: new ( child) as Box < dyn DevProcess + Send > )
231233 } ,
232234 dirs,
233235 )
@@ -361,7 +363,7 @@ fn build_ignore_matcher(dir: &Path) -> IgnoreMatcher {
361363
362364 ignore_builder. add ( path) ;
363365
364- if let Ok ( ignore_file) = std:: env:: var ( "TAURI_CLI_WATCHER_IGNORE_FILENAME" ) {
366+ if let Some ( ignore_file) = std:: env:: var_os ( "TAURI_CLI_WATCHER_IGNORE_FILENAME" ) {
365367 ignore_builder. add ( dir. join ( ignore_file) ) ;
366368 }
367369
@@ -393,7 +395,7 @@ fn lookup<F: FnMut(FileType, PathBuf)>(dir: &Path, mut f: F) {
393395 let mut builder = ignore:: WalkBuilder :: new ( dir) ;
394396 builder. add_custom_ignore_filename ( ".taurignore" ) ;
395397 let _ = builder. add_ignore ( default_gitignore) ;
396- if let Ok ( ignore_file) = std:: env:: var ( "TAURI_CLI_WATCHER_IGNORE_FILENAME" ) {
398+ if let Some ( ignore_file) = std:: env:: var_os ( "TAURI_CLI_WATCHER_IGNORE_FILENAME" ) {
397399 builder. add_ignore ( ignore_file) ;
398400 }
399401 builder. require_git ( false ) . ignore ( false ) . max_depth ( Some ( 1 ) ) ;
@@ -490,17 +492,16 @@ impl Rust {
490492 fn run_dev < F : Fn ( Option < i32 > , ExitReason ) + Send + Sync + ' static > (
491493 & mut self ,
492494 options : Options ,
493- run_args : Vec < String > ,
495+ run_args : & [ String ] ,
494496 on_exit : F ,
495- ) -> crate :: Result < Box < dyn DevProcess + Send > > {
497+ ) -> crate :: Result < desktop :: DevChild > {
496498 desktop:: run_dev (
497499 options,
498500 run_args,
499501 & mut self . available_targets ,
500502 self . config_features . clone ( ) ,
501503 on_exit,
502504 )
503- . map ( |c| Box :: new ( c) as Box < dyn DevProcess + Send > )
504505 }
505506
506507 fn run_dev_watcher <
@@ -1380,7 +1381,7 @@ fn tauri_config_to_bundle_settings(
13801381 if enabled_features. contains ( & "tray-icon" . into ( ) )
13811382 || enabled_features. contains ( & "tauri/tray-icon" . into ( ) )
13821383 {
1383- let ( tray_kind, path) = std:: env:: var ( "TAURI_LINUX_AYATANA_APPINDICATOR" )
1384+ let ( tray_kind, path) = std:: env:: var_os ( "TAURI_LINUX_AYATANA_APPINDICATOR" )
13841385 . map ( |ayatana| {
13851386 if ayatana == "true" || ayatana == "1" {
13861387 (
@@ -1402,7 +1403,7 @@ fn tauri_config_to_bundle_settings(
14021403 )
14031404 }
14041405 } )
1405- . unwrap_or_else ( |_| pkgconfig_utils:: get_appindicator_library_path ( ) ) ;
1406+ . unwrap_or_else ( pkgconfig_utils:: get_appindicator_library_path) ;
14061407 match tray_kind {
14071408 pkgconfig_utils:: TrayKind :: Ayatana => {
14081409 depends_deb. push ( "libayatana-appindicator3-1" . into ( ) ) ;
0 commit comments