use core::error::Error (#11317)

This commit is contained in:
Thomas Coratger
2024-09-29 18:47:48 +02:00
committed by GitHub
parent b8aeecae62
commit 55bf29e6d2
25 changed files with 90 additions and 101 deletions

View File

@ -61,8 +61,7 @@ pub enum InvalidTransactionError {
SignerAccountHasBytecode,
}
#[cfg(feature = "std")]
impl std::error::Error for InvalidTransactionError {}
impl core::error::Error for InvalidTransactionError {}
/// Represents error variants that can happen when trying to convert a transaction to
/// [`PooledTransactionsElement`](crate::PooledTransactionsElement)
@ -87,5 +86,4 @@ pub enum TryFromRecoveredTransactionError {
BlobSidecarMissing,
}
#[cfg(feature = "std")]
impl std::error::Error for TryFromRecoveredTransactionError {}
impl core::error::Error for TryFromRecoveredTransactionError {}