diff --git a/core/src/replay_stage.rs b/core/src/replay_stage.rs index 9f143d83d4..a35d42b318 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -2507,9 +2507,9 @@ pub(crate) mod tests { assert_matches!( res, - Err( - BlockstoreProcessorError::FailedToLoadEntries(BlockstoreError::InvalidShredData(_)), - ) + Err(BlockstoreProcessorError::FailedToLoadEntries( + BlockstoreError::InvalidShredData(_) + ),) ); } diff --git a/sdk/program/src/instruction.rs b/sdk/program/src/instruction.rs index ac507bbb56..8714fc8fe6 100644 --- a/sdk/program/src/instruction.rs +++ b/sdk/program/src/instruction.rs @@ -8,7 +8,9 @@ use serde::Serialize; use thiserror::Error; /// Reasons the runtime might have rejected an instruction. -#[derive(Serialize, Deserialize, Debug, Error, PartialEq, Eq, Clone, AbiExample, AbiEnumVisitor)] +#[derive( + Serialize, Deserialize, Debug, Error, PartialEq, Eq, Clone, AbiExample, AbiEnumVisitor, +)] pub enum InstructionError { /// Deprecated! Use CustomError instead! /// The program instruction returned an error diff --git a/sdk/src/transaction.rs b/sdk/src/transaction.rs index 8aae19b424..3000943301 100644 --- a/sdk/src/transaction.rs +++ b/sdk/src/transaction.rs @@ -20,7 +20,9 @@ use std::result; use thiserror::Error; /// Reasons a transaction might be rejected. -#[derive(Error, Serialize, Deserialize, Debug, PartialEq, Eq, Clone, AbiExample, AbiEnumVisitor)] +#[derive( + Error, Serialize, Deserialize, Debug, PartialEq, Eq, Clone, AbiExample, AbiEnumVisitor, +)] pub enum TransactionError { /// An account is already being processed in another transaction in a way /// that does not support parallelism