π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix clippy collapsible_if in ensure_runtime
Amrithesh Kakkoth Entea633b8a0fe27
diff --git a/mobile/apps/photos/rust/src/ml/runtime.rs b/mobile/apps/photos/rust/src/ml/runtime.rsindex 055ecd472e..94c3741320 100644--- a/mobile/apps/photos/rust/src/ml/runtime.rs+++ b/mobile/apps/photos/rust/src/ml/runtime.rs@@ -272,12 +272,11 @@ pub fn ensure_runtime(config: &MlRuntimeConfig) -> MlResult<()> {// Fast path: check under read lock whether the current runtime can serve.{let guard = read_runtime();- if let Some(existing) = guard.as_ref() {- if existing.config.provider_policy == config.provider_policy- && existing.config.model_paths.can_serve(&config.model_paths)- {- return Ok(()); // existing runtime handles this request- }+ if let Some(existing) = guard.as_ref()+ && existing.config.provider_policy == config.provider_policy+ && existing.config.model_paths.can_serve(&config.model_paths)+ {+ return Ok(()); // existing runtime handles this request}}