Skip to content

Commit

Permalink
chore: add lints to papyrus_test_utils
Browse files Browse the repository at this point in the history
Lior banned `as` repo-wide, unless absolutely necessary.
  • Loading branch information
Gilad Chase committed Nov 5, 2024
1 parent 1b3f257 commit 6965664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions crates/papyrus_test_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ starknet_api = { workspace = true, features = ["testing"] }

[dev-dependencies]
pretty_assertions.workspace = true

[lints]
workspace = true
2 changes: 1 addition & 1 deletion crates/papyrus_test_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ fn get_rand_test_body_with_events(
while is_v3_transaction(&transaction) {
transaction = Transaction::get_test_instance(rng);
}
transaction_hashes.push(TransactionHash(StarkHash::from(i as u128)));
transaction_hashes.push(TransactionHash(StarkHash::from(u128::try_from(i).unwrap())));
let transaction_output = get_test_transaction_output(&transaction);
transactions.push(transaction);
transaction_outputs.push(transaction_output);
Expand Down

0 comments on commit 6965664

Please sign in to comment.