cargo fmt

This commit is contained in:
Michael Vines 2021-02-18 23:29:31 -08:00
parent 5404e6aed0
commit fd3b71a2c6
3 changed files with 9 additions and 5 deletions

View File

@ -2507,9 +2507,9 @@ pub(crate) mod tests {
assert_matches!( assert_matches!(
res, res,
Err( Err(BlockstoreProcessorError::FailedToLoadEntries(
BlockstoreProcessorError::FailedToLoadEntries(BlockstoreError::InvalidShredData(_)), BlockstoreError::InvalidShredData(_)
) ),)
); );
} }

View File

@ -8,7 +8,9 @@ use serde::Serialize;
use thiserror::Error; use thiserror::Error;
/// Reasons the runtime might have rejected an instruction. /// 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 { pub enum InstructionError {
/// Deprecated! Use CustomError instead! /// Deprecated! Use CustomError instead!
/// The program instruction returned an error /// The program instruction returned an error

View File

@ -20,7 +20,9 @@ use std::result;
use thiserror::Error; use thiserror::Error;
/// Reasons a transaction might be rejected. /// 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 { pub enum TransactionError {
/// An account is already being processed in another transaction in a way /// An account is already being processed in another transaction in a way
/// that does not support parallelism /// that does not support parallelism