cargo fmt
This commit is contained in:
parent
5404e6aed0
commit
fd3b71a2c6
|
@ -2507,9 +2507,9 @@ pub(crate) mod tests {
|
||||||
|
|
||||||
assert_matches!(
|
assert_matches!(
|
||||||
res,
|
res,
|
||||||
Err(
|
Err(BlockstoreProcessorError::FailedToLoadEntries(
|
||||||
BlockstoreProcessorError::FailedToLoadEntries(BlockstoreError::InvalidShredData(_)),
|
BlockstoreError::InvalidShredData(_)
|
||||||
)
|
),)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue