33// SPDX-License-Identifier: MIT
44
55use super :: {
6- configure_cargo , device_prompt, ensure_init, env, get_app, get_config, inject_resources,
7- merge_plist , open_and_wait, MobileTarget ,
6+ device_prompt, ensure_init, env, get_app, get_config, inject_resources, merge_plist ,
7+ open_and_wait, MobileTarget ,
88} ;
99use crate :: {
1010 dev:: Options as DevOptions ,
@@ -25,7 +25,6 @@ use cargo_mobile2::{
2525 config:: Config as AppleConfig ,
2626 device:: { Device , DeviceKind } ,
2727 } ,
28- config:: app:: App ,
2928 env:: Env ,
3029 opts:: { NoiseLevel , Profile } ,
3130} ;
@@ -153,7 +152,7 @@ fn run_command(options: Options, noise_level: NoiseLevel) -> Result<()> {
153152 tauri_utils:: platform:: Target :: Ios ,
154153 options. config . as_ref ( ) . map ( |c| & c. 0 ) ,
155154 ) ?;
156- let ( interface, app , config) = {
155+ let ( interface, config) = {
157156 let tauri_config_guard = tauri_config. lock ( ) . unwrap ( ) ;
158157 let tauri_config_ = tauri_config_guard. as_ref ( ) . unwrap ( ) ;
159158
@@ -167,7 +166,7 @@ fn run_command(options: Options, noise_level: NoiseLevel) -> Result<()> {
167166 & Default :: default ( ) ,
168167 ) ;
169168
170- ( interface, app , config)
169+ ( interface, config)
171170 } ;
172171
173172 let tauri_path = tauri_dir ( ) ;
@@ -199,7 +198,6 @@ fn run_command(options: Options, noise_level: NoiseLevel) -> Result<()> {
199198 tauri_config,
200199 device,
201200 env,
202- & app,
203201 & config,
204202 noise_level,
205203 )
@@ -344,7 +342,6 @@ fn run_dev(
344342 tauri_config : ConfigHandle ,
345343 device : Option < Device > ,
346344 env : Env ,
347- app : & App ,
348345 config : & AppleConfig ,
349346 noise_level : NoiseLevel ,
350347) -> Result < ( ) > {
@@ -371,8 +368,6 @@ fn run_dev(
371368
372369 let set_host = options. host . is_some ( ) ;
373370
374- configure_cargo ( app, None ) ?;
375-
376371 let open = options. open ;
377372 let exit_on_panic = options. exit_on_panic ;
378373 let no_watch = options. no_watch ;
0 commit comments