Skip to content

Commit

Permalink
rust analyzer check.command check (#1492)
Browse files Browse the repository at this point in the history
* rust analyzer check.command check

* clippy
  • Loading branch information
tcoratger authored Oct 24, 2024
1 parent 0bffa25 commit dd15346
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"files.exclude": {
"**/.git": false
},
"rust-analyzer.check.command": "clippy",
"rust-analyzer.check.command": "check",
"rust-analyzer.checkOnSave": false,
"rust-analyzer.cargo.features": "all",
"deno.enable": true,
"deno.suggest.imports.autoDiscover": true,
Expand Down
7 changes: 5 additions & 2 deletions src/providers/eth_provider/provider.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::{
constant::CALL_REQUEST_GAS_LIMIT,
database::{ethereum::EthereumBlockStore, Database},
error::{EthApiError, EthereumDataFormatError, EvmError, ExecutionError, TransactionError},
error::{EthApiError, EvmError, ExecutionError, TransactionError},
starknet::kakarot_core::{
self,
core::{CallInput, KakarotCoreReader, Uint256},
Expand Down Expand Up @@ -294,7 +294,10 @@ where
/// Deploy the EVM transaction signer if a corresponding contract is not found on
/// Starknet.
pub(crate) async fn deploy_evm_transaction_signer(&self, signer: Address) -> EthApiResult<()> {
use crate::providers::eth_provider::constant::hive::{DEPLOY_WALLET, DEPLOY_WALLET_NONCE};
use crate::providers::eth_provider::{
constant::hive::{DEPLOY_WALLET, DEPLOY_WALLET_NONCE},
error::EthereumDataFormatError,
};
use starknet::{
accounts::ExecutionV1,
core::{
Expand Down
2 changes: 0 additions & 2 deletions tests/tests/txpool_api.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#![allow(clippy::used_underscore_binding)]
#![cfg(feature = "testing")]
use crate::tests::mempool::create_sample_transactions;
use alloy_rpc_types::Transaction;
use alloy_rpc_types_txpool::{TxpoolContent, TxpoolContentFrom, TxpoolInspect, TxpoolInspectSummary, TxpoolStatus};
use alloy_serde::WithOtherFields;
use jsonrpsee::server::ServerHandle;
use kakarot_rpc::{
providers::eth_provider::database::types::transaction::ExtendedTransaction,
Expand Down

0 comments on commit dd15346

Please sign in to comment.