|
46 | 46 | quote::{OrderQuoteSide, QuoteSigningScheme, SellAmount}, |
47 | 47 | signature::{self, Signature, SigningScheme, hashed_eip712_message}, |
48 | 48 | time, |
49 | | - }, std::{sync::Arc, time::Duration}, tracing::instrument |
| 49 | + }, |
| 50 | + std::{sync::Arc, time::Duration}, |
| 51 | + tracing::instrument, |
50 | 52 | }; |
51 | 53 |
|
52 | 54 | #[cfg_attr(any(test, feature = "test-util"), mockall::automock)] |
@@ -859,8 +861,7 @@ pub enum OrderValidToError { |
859 | 861 | /// This also checks for orders selling wrapped native token for native token. |
860 | 862 | fn has_same_buy_and_sell_token(order: &PreOrderData, native_token: &Address) -> bool { |
861 | 863 | order.sell_token == order.buy_token |
862 | | - || (order.sell_token == *native_token |
863 | | - && order.buy_token == BUY_ETH_ADDRESS) |
| 864 | + || (order.sell_token == *native_token && order.buy_token == BUY_ETH_ADDRESS) |
864 | 865 | } |
865 | 866 |
|
866 | 867 | /// Retrieves the quote for an order that is being created and verify that its |
@@ -1029,7 +1030,7 @@ mod tests { |
1029 | 1030 | signature_validator::MockSignatureValidating, |
1030 | 1031 | }, |
1031 | 1032 | alloy::{ |
1032 | | - primitives::{Address, B160, U160, address}, |
| 1033 | + primitives::{Address, U160, address}, |
1033 | 1034 | providers::{Provider, ProviderBuilder, mock::Asserter}, |
1034 | 1035 | }, |
1035 | 1036 | ethcontract::web3::signing::SecretKeyRef, |
|
0 commit comments