From cd5da736e0788d99d3f92a050aef3d3f88578729 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 11:47:00 +0000 Subject: [PATCH] Refactor Yahoo Finance client to fetch symbols concurrently and fix clippy warnings Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com> --- src-tauri/src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index c1a1651..bd10461 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -319,10 +319,8 @@ async fn fetch_market_data( let mut prices = std::collections::HashMap::new(); let results = futures::future::join_all(futures_reqs).await; - for res in results { - if let Some((sym, price)) = res { - prices.insert(sym, price); - } + for (sym, price) in results.into_iter().flatten() { + prices.insert(sym, price); } if !prices.is_empty() {