diff --git a/tooling/cli/src/migrate/manifest.rs b/tooling/cli/src/migrate/manifest.rs index 22024f9898d9..54673d91766d 100644 --- a/tooling/cli/src/migrate/manifest.rs +++ b/tooling/cli/src/migrate/manifest.rs @@ -225,6 +225,7 @@ mod tests { .as_array() .expect("features must be an array") .clone(); + if toml.contains("reqwest-native-tls-vendored") { assert!( features @@ -233,10 +234,22 @@ mod tests { "reqwest-native-tls-vendored was not replaced with native-tls-vendored" ); } + + if toml.contains("system-tray") { + assert!( + features + .iter() + .any(|f| f.as_str().expect("feature must be a string") == "tray-icon"), + "system-tray was not replaced with tray-icon" + ); + } + for feature in features.iter() { let feature = feature.as_str().expect("feature must be a string"); assert!( - keep_features.contains(&feature) || feature == "native-tls-vendored", + keep_features.contains(&feature) + || feature == "native-tls-vendored" + || feature == "tray-icon", "feature {feature} should have been removed" ); } diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index ec866cdc5d06..1e2b9ede52c5 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -221,7 +221,7 @@ fn run_dev( crate::dev::wait_dev_process(c.clone(), move |status, reason| { crate::dev::on_app_exit(status, reason, exit_on_panic, no_watch) }); - Ok(Box::new(c) as Box) + Ok(Box::new(c) as Box) } Err(e) => { crate::dev::kill_before_dev_process();