From fb1c9436e68a75568b501b76476419d5c0463d3b Mon Sep 17 00:00:00 2001 From: Ammar Arif Date: Wed, 24 Jul 2024 13:23:38 -0400 Subject: [PATCH] clippy --- crates/katana/core/src/sequencer.rs | 2 +- crates/katana/rpc/rpc/src/starknet/write.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/katana/core/src/sequencer.rs b/crates/katana/core/src/sequencer.rs index 11b181959e..970195ace4 100644 --- a/crates/katana/core/src/sequencer.rs +++ b/crates/katana/core/src/sequencer.rs @@ -97,7 +97,7 @@ impl KatanaSequencer { } pub fn provider(&self) -> &BlockchainProvider> { - &self.backend.blockchain.provider() + self.backend.blockchain.provider() } // pub async fn set_storage_at( diff --git a/crates/katana/rpc/rpc/src/starknet/write.rs b/crates/katana/rpc/rpc/src/starknet/write.rs index 10f62ffb9b..286f9cf8d2 100644 --- a/crates/katana/rpc/rpc/src/starknet/write.rs +++ b/crates/katana/rpc/rpc/src/starknet/write.rs @@ -17,7 +17,7 @@ impl StarknetApi { ) -> Result { self.on_io_blocking_task(move |this| { if tx.is_query() { - return Err(StarknetApiError::UnsupportedTransactionVersion.into()); + return Err(StarknetApiError::UnsupportedTransactionVersion); } let tx = tx.into_tx_with_chain_id(this.inner.sequencer.backend().chain_id); @@ -36,7 +36,7 @@ impl StarknetApi { ) -> Result { self.on_io_blocking_task(move |this| { if tx.is_query() { - return Err(StarknetApiError::UnsupportedTransactionVersion.into()); + return Err(StarknetApiError::UnsupportedTransactionVersion); } let tx = tx @@ -59,7 +59,7 @@ impl StarknetApi { ) -> Result { self.on_io_blocking_task(move |this| { if tx.is_query() { - return Err(StarknetApiError::UnsupportedTransactionVersion.into()); + return Err(StarknetApiError::UnsupportedTransactionVersion); } let tx = tx.into_tx_with_chain_id(this.inner.sequencer.backend().chain_id);