Skip to content

Commit

Permalink
fmt + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Nov 13, 2024
1 parent 6a8ae80 commit 03b0ca4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/client/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//! Error types for the client program.
use alloc::string::{String, ToString};
use thiserror::Error;
use kona_derive::errors::{PipelineError, PipelineErrorKind};
use kona_mpt::OrderedListWalkerError;
use kona_preimage::errors::PreimageOracleError;
use op_alloy_protocol::{FromBlockError, OpBlockConversionError};
use thiserror::Error;

/// Error from an oracle-backed provider.
#[derive(Error, Debug)]
Expand Down
2 changes: 1 addition & 1 deletion crates/derive/src/test_utils/chain_providers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ use crate::{
errors::{PipelineError, PipelineErrorKind},
traits::{ChainProvider, L2ChainProvider},
};
use thiserror::Error;
use alloc::{boxed::Box, string::ToString, sync::Arc, vec::Vec};
use alloy_consensus::{Header, Receipt, TxEnvelope};
use alloy_primitives::{map::HashMap, B256};
use async_trait::async_trait;
use op_alloy_consensus::OpBlock;
use op_alloy_genesis::{RollupConfig, SystemConfig};
use op_alloy_protocol::{BatchValidationProvider, BlockInfo, L2BlockInfo};
use thiserror::Error;

/// A mock chain provider for testing.
#[derive(Debug, Clone, Default)]
Expand Down
2 changes: 1 addition & 1 deletion crates/derive/src/test_utils/sys_config_fetcher.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! Implements a mock [L2SystemConfigFetcher] for testing.
use thiserror::Error;
use crate::{
errors::{PipelineError, PipelineErrorKind},
traits::L2ChainProvider,
Expand All @@ -11,6 +10,7 @@ use async_trait::async_trait;
use op_alloy_consensus::OpBlock;
use op_alloy_genesis::{RollupConfig, SystemConfig};
use op_alloy_protocol::{BatchValidationProvider, L2BlockInfo};
use thiserror::Error;

/// A mock implementation of the `SystemConfigL2Fetcher` for testing.
#[derive(Debug, Default)]
Expand Down
2 changes: 1 addition & 1 deletion crates/driver/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Contains driver-related error types.
use thiserror::Error;
use kona_derive::errors::PipelineErrorKind;
use op_alloy_protocol::FromBlockError;
use thiserror::Error;

/// A [Result] type for the [DriverError].
pub type DriverResult<T, E> = Result<T, DriverError<E>>;
Expand Down
4 changes: 1 addition & 3 deletions crates/mpt/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ pub type OrderedListWalkerResult<T> = Result<T, OrderedListWalkerError>;
#[derive(Error, Debug, PartialEq, Eq)]
pub enum OrderedListWalkerError {
/// Iterator has already been hydrated, and cannot be re-hydrated until it is exhausted.
#[error(
"Iterator has already been hydrated, and cannot be re-hydrated until it is exhausted"
)]
#[error("Iterator has already been hydrated, and cannot be re-hydrated until it is exhausted")]
AlreadyHydrated,
/// Trie node error.
#[error("{0}")]
Expand Down

0 comments on commit 03b0ca4

Please sign in to comment.