mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
add use_self clippy lint (#8325)
This commit is contained in:
@ -37,18 +37,18 @@ impl PayloadBuilderError {
|
||||
where
|
||||
E: std::error::Error + Send + Sync + 'static,
|
||||
{
|
||||
PayloadBuilderError::Other(Box::new(error))
|
||||
Self::Other(Box::new(error))
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ProviderError> for PayloadBuilderError {
|
||||
fn from(error: ProviderError) -> Self {
|
||||
PayloadBuilderError::Internal(RethError::Provider(error))
|
||||
Self::Internal(RethError::Provider(error))
|
||||
}
|
||||
}
|
||||
|
||||
impl From<oneshot::error::RecvError> for PayloadBuilderError {
|
||||
fn from(_: oneshot::error::RecvError) -> Self {
|
||||
PayloadBuilderError::ChannelClosed
|
||||
Self::ChannelClosed
|
||||
}
|
||||
}
|
||||
|
||||
@ -479,17 +479,17 @@ where
|
||||
{
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
PayloadServiceCommand::BuildNewPayload(f0, f1) => {
|
||||
Self::BuildNewPayload(f0, f1) => {
|
||||
f.debug_tuple("BuildNewPayload").field(&f0).field(&f1).finish()
|
||||
}
|
||||
PayloadServiceCommand::BestPayload(f0, f1) => {
|
||||
Self::BestPayload(f0, f1) => {
|
||||
f.debug_tuple("BestPayload").field(&f0).field(&f1).finish()
|
||||
}
|
||||
PayloadServiceCommand::PayloadAttributes(f0, f1) => {
|
||||
Self::PayloadAttributes(f0, f1) => {
|
||||
f.debug_tuple("PayloadAttributes").field(&f0).field(&f1).finish()
|
||||
}
|
||||
PayloadServiceCommand::Resolve(f0, _f1) => f.debug_tuple("Resolve").field(&f0).finish(),
|
||||
PayloadServiceCommand::Subscribe(f0) => f.debug_tuple("Subscribe").field(&f0).finish(),
|
||||
Self::Resolve(f0, _f1) => f.debug_tuple("Resolve").field(&f0).finish(),
|
||||
Self::Subscribe(f0) => f.debug_tuple("Subscribe").field(&f0).finish(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user