Skip to content

Commit

Permalink
Support rust 1.84.0 (#3229)
Browse files Browse the repository at this point in the history
Fixes compilation on the latest stable rust version.
  • Loading branch information
squadgazzz authored Jan 9, 2025
1 parent d13627d commit 162ebc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/autopilot/src/database/onchain_order_events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ type GeneralOnchainOrderPlacementData = (
OnchainOrderPlacement,
Order,
);
async fn parse_general_onchain_order_placement_data<'a>(
quoter: &'a dyn OrderQuoting,
async fn parse_general_onchain_order_placement_data(
quoter: &'_ dyn OrderQuoting,
order_placement_events_and_quotes_zipped: Vec<(EthContractEvent<ContractEvent>, i64, i64)>,
domain_separator: DomainSeparator,
settlement_contract: H160,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ mod tests {
constant_x: fn(u32) -> I256,
constant_a: fn(u32) -> I256,
) {
let re = Regex::new(r".* ([ax])([\d]+) = (\d+);.*$").unwrap();
for line in code.split('\n').filter(|line| !line.trim().is_empty()) {
let re = Regex::new(r".* ([ax])([\d]+) = (\d+);.*$").unwrap();
let cap = re.captures_iter(line).next().unwrap();
match &cap[1] {
"x" => assert_eq!(&cap[3], format!("{}", constant_x(cap[2].parse().unwrap()))),
Expand Down

0 comments on commit 162ebc4

Please sign in to comment.