Skip to content

Commit

Permalink
[TRIVIAL] Fix clippy warnings of 1.81 (#2952)
Browse files Browse the repository at this point in the history
# Description
Time for fixing a few lints introduced in rust 1.81
  • Loading branch information
MartinquaXD authored Sep 6, 2024
1 parent e05fe20 commit 2bdb446
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions crates/autopilot/src/infra/persistence/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ impl Persistence {
self.postgres
.replace_current_auction(&auction)
.await
.map(|auction_id| {
.inspect(|&auction_id| {
self.archive_auction(auction_id, auction);
auction_id
})
.map_err(DatabaseError)
}
Expand Down
2 changes: 1 addition & 1 deletion crates/e2e/src/setup/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ impl<'a> Services<'a> {
) -> Result<OrderQuoteResponse, (StatusCode, String)> {
let quoting = self
.http
.post(&format!("{API_HOST}{QUOTING_ENDPOINT}"))
.post(format!("{API_HOST}{QUOTING_ENDPOINT}"))
.json(&quote)
.send()
.await
Expand Down
4 changes: 2 additions & 2 deletions crates/e2e/tests/e2e/ethflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ async fn test_account_query(
contracts: &Contracts,
) {
let query = client
.get(&format!(
.get(format!(
"{API_HOST}{ACCOUNT_ENDPOINT}/{queried_account:?}/orders",
))
.send()
Expand Down Expand Up @@ -366,7 +366,7 @@ enum TradeQuery {

async fn test_trade_query(query_type: &TradeQuery, client: &Client, contracts: &Contracts) {
let query = client
.get(&format!("{API_HOST}{TRADES_ENDPOINT}",))
.get(format!("{API_HOST}{TRADES_ENDPOINT}",))
.query(&[match query_type {
TradeQuery::ByUid(uid) => ("orderUid", format!("{uid:?}")),
TradeQuery::ByOwner(owner) => ("owner", format!("{owner:?}")),
Expand Down
4 changes: 2 additions & 2 deletions crates/e2e/tests/e2e/order_cancellation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async fn order_cancellation(web3: Web3) {

async move {
let cancellation = client
.delete(&format!("{API_HOST}{ORDERS_ENDPOINT}/{order_uid}"))
.delete(format!("{API_HOST}{ORDERS_ENDPOINT}/{order_uid}"))
.json(&CancellationPayload {
signature: cancellation.signature,
signing_scheme: cancellation.signing_scheme,
Expand Down Expand Up @@ -159,7 +159,7 @@ async fn order_cancellation(web3: Web3) {

async move {
let cancellation = client
.delete(&format!("{API_HOST}{ORDERS_ENDPOINT}"))
.delete(format!("{API_HOST}{ORDERS_ENDPOINT}"))
.json(&signed_cancellations)
.send()
.await
Expand Down

0 comments on commit 2bdb446

Please sign in to comment.