Skip to content

Commit

Permalink
Pacify clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jan 5, 2024
1 parent 4763f6f commit 52cb664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kraken_exchange.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,11 @@ impl ExchangeClient for KrakenExchangeClient {
if let (Some(ask_price), Some(bid_price)) = (
order_book
.asks
.get(0)
.first()
.and_then(|order_book_tier| order_book_tier.0.parse::<f64>().ok()),
order_book
.bids
.get(0)
.first()
.and_then(|order_book_tier| order_book_tier.0.parse::<f64>().ok()),
) {
return Ok(BidAsk {
Expand Down

0 comments on commit 52cb664

Please sign in to comment.