From 70ff843522460aa425b218431898cbf24e477806 Mon Sep 17 00:00:00 2001 From: davidemazzocchi Date: Fri, 27 Feb 2026 11:43:13 +0100 Subject: [PATCH] chore: fix example by deleting the useless map from list --- 01.workspace/heave/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01.workspace/heave/src/lib.rs b/01.workspace/heave/src/lib.rs index 54895ab..6f66775 100644 --- a/01.workspace/heave/src/lib.rs +++ b/01.workspace/heave/src/lib.rs @@ -135,7 +135,7 @@ //! let mut filtered_catalog = Catalog::new(db_path); //! filtered_catalog.load_by_filter(&filter)?; //! let cheap_products: Vec = filtered_catalog.list() -//! .unwrap().into_iter().map(|p| p.unwrap()).collect(); +//! .unwrap().into_iter().collect(); //! println!("✅ Found {} cheap, in-stock product(s).", cheap_products.len()); //! assert_eq!(cheap_products.len(), 1); //! assert_eq!(cheap_products[0].id, "p2");