Skip to content

Commit 8c794f1

Browse files
committed
Fix clippy lints
1 parent 6a75817 commit 8c794f1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

RELEASES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ This release introduces [uv](https://docs.astral.sh/uv) as the Python project an
103103
- Fixed backtest example load bars from custom CSV (#2383), thanks @hanksuper
104104
- Fixed subscribe composite bars (#2390), thanks @faysou
105105
- Fixed invalid link in IB docs (#2401), thanks @stefansimik
106-
- Fixed cache index loading to ensure persisted data remains available after startup
106+
- Fixed cache index loading to ensure persisted data remains available after startup, thanks for reporting @Saransh-28
107107

108108
### Documentation Updates
109109
- Added backtest clock and timers example (#2327), thanks @stefansimik

crates/adapters/databento/src/decode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ mod tests {
12831283
#[case] input: Result<&str, &'static str>, // Using `&'static str` for errors
12841284
#[case] expected: Currency,
12851285
) {
1286-
let actual = parse_currency_or_usd_default(input.map_err(|e| std::io::Error::other(e)));
1286+
let actual = parse_currency_or_usd_default(input.map_err(std::io::Error::other));
12871287
assert_eq!(actual, expected);
12881288
}
12891289

crates/execution/src/engine/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ impl ExecutionEngine {
196196
continue;
197197
}
198198
let mut own_book = self.get_or_init_own_order_book(&order.instrument_id());
199-
own_book.add(order.to_own_book_order())
199+
own_book.add(order.to_own_book_order());
200200
}
201201
}
202202
}

crates/execution/src/matching_engine/engine.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@ impl OrderMatchingEngine {
15581558
"Added position id {} to cache for order {}",
15591559
position_id,
15601560
client_order_id
1561-
)
1561+
);
15621562
}
15631563

15641564
if (!child_order.is_open())
@@ -1631,7 +1631,7 @@ impl OrderMatchingEngine {
16311631
price,
16321632
trigger_price,
16331633
Some(false),
1634-
)
1634+
);
16351635
}
16361636
}
16371637
} else {
@@ -2077,7 +2077,7 @@ impl OrderMatchingEngine {
20772077
price,
20782078
trigger_price,
20792079
Some(false),
2080-
)
2080+
);
20812081
}
20822082
}
20832083
}

0 commit comments

Comments
 (0)