diff --git a/nautilus_core/common/src/cache/mod.rs b/nautilus_core/common/src/cache/mod.rs index 4ed2bcfa8f15..11d0d7255eb5 100644 --- a/nautilus_core/common/src/cache/mod.rs +++ b/nautilus_core/common/src/cache/mod.rs @@ -1196,7 +1196,7 @@ impl Cache { let mut order_lists = self.order_lists.values().collect::>(); if let Some(venue) = venue { - order_lists.retain(|ol| ol.instrument_id.venue == *venue); + order_lists.retain(|ol| &ol.instrument_id.venue == venue); } if let Some(instrument_id) = instrument_id {