Skip to content

Commit

Permalink
fix(linters): Fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
akhercha committed Oct 27, 2024
1 parent e2b523c commit 9be6752
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel = "1.82"
components = ["rustfmt", "clippy", "rust-analyzer"]
profile = "minimal"
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ pub async fn get_blocks_with_txs(

let mut resources = Vec::with_capacity(block_with_txs.transactions.len());

#[cfg(with_sps)]
#[cfg(feature = "with_sps")]
for tx in block_with_txs.transactions.iter() {
let maybe_receipt = starknet_rpc
.get_transaction_receipt(tx.transaction_hash())
Expand All @@ -185,7 +185,7 @@ pub async fn get_blocks_with_txs(

resources.push(resource);
}
#[cfg(not(with_sps))]
#[cfg(not(feature = "with_sps"))]
for _ in block_with_txs.transactions.iter() {
resources.push(ExecutionResources {
computation_resources: ComputationResources {
Expand Down

0 comments on commit 9be6752

Please sign in to comment.