Skip to content

Commit c0bb6ae

Browse files
native_blockifier,apollo_gateway: some allow result_large_err
1 parent 619c200 commit c0bb6ae

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

crates/apollo_gateway/src/stateful_transaction_validator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ type BlockifierStatefulValidator = StatefulValidator<Box<dyn MempoolStateReader>
4545
// TODO(yair): move the trait to Blockifier.
4646
#[cfg_attr(test, automock)]
4747
pub trait StatefulTransactionValidatorTrait {
48+
#[allow(clippy::result_large_err)]
4849
fn validate(&mut self, account_tx: AccountTransaction)
4950
-> BlockifierStatefulValidatorResult<()>;
5051
}

crates/native_blockifier/src/py_validator.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ impl PyValidator {
6161

6262
// Transaction Execution API.
6363

64+
#[allow(clippy::result_large_err)]
6465
#[pyo3(signature = (tx, optional_py_class_info, deploy_account_tx_hash))]
6566
pub fn perform_validations(
6667
&mut self,
@@ -90,6 +91,7 @@ impl PyValidator {
9091
// If the DeployAccount transaction of the account was submitted but not processed yet, it
9192
// should be skipped for subsequent transactions for a better user experience. (they will
9293
// otherwise fail solely because the deploy account hasn't been processed yet).
94+
#[allow(clippy::result_large_err)]
9395
pub fn should_run_stateful_validations(
9496
&mut self,
9597
account_tx: &AccountTransaction,

0 commit comments

Comments
 (0)