Skip to content

Commit

Permalink
Consistently use reference in retain
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Apr 27, 2024
1 parent d2e2399 commit 335cbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nautilus_core/common/src/cache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ impl Cache {
let mut order_lists = self.order_lists.values().collect::<Vec<&OrderList>>();

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 {
Expand Down

0 comments on commit 335cbae

Please sign in to comment.