error type implementations

This commit is contained in:
Tadeo hepperle
2024-01-22 18:53:04 +01:00
parent a349daaf45
commit 2c40b14230
32 changed files with 269 additions and 207 deletions
+3 -3
View File
@@ -27,8 +27,8 @@ use crate::backend::{
};
use crate::config::BlockHash;
use crate::error::{Error, RpcError};
use crate::Config;
use crate::prelude::*;
use crate::Config;
use async_trait::async_trait;
use follow_stream_driver::{FollowStreamDriver, FollowStreamDriverHandle};
use futures::{Stream, StreamExt};
@@ -43,7 +43,7 @@ pub use rpc_methods::UnstableRpcMethods;
/// Configure and build an [`UnstableBackend`].
pub struct UnstableBackendBuilder<T> {
max_block_life: usize,
_marker: std::marker::PhantomData<T>,
_marker: PhantomData<T>,
}
impl<T: Config> Default for UnstableBackendBuilder<T> {
@@ -57,7 +57,7 @@ impl<T: Config> UnstableBackendBuilder<T> {
pub fn new() -> Self {
Self {
max_block_life: usize::MAX,
_marker: std::marker::PhantomData,
_marker: PhantomData,
}
}