Skip to content

Commit

Permalink
chore: Appease Clippy-sama
Browse files Browse the repository at this point in the history
  • Loading branch information
netrome committed Feb 19, 2025
1 parent 12edd22 commit 79ef630
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ where

type TaskParams = ();

fn shared_data(&self) -> Self::SharedData {
()
}
fn shared_data(&self) -> Self::SharedData {}

async fn into_task(
self,
Expand Down
3 changes: 2 additions & 1 deletion crates/proof_system/global_merkle_root/service/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![allow(non_snake_case)]
#![allow(clippy::arithmetic_side_effects)]

use fuel_core_global_merkle_root_storage::ProcessedTransactions;
use fuel_core_storage::{
Expand Down Expand Up @@ -123,7 +124,7 @@ impl BlockStream for mpsc::Receiver<Block> {
type Error = ClosedChannel;

async fn next(&mut self) -> Result<Block, ClosedChannel> {
self.recv().await.ok_or_else(|| ClosedChannel {})
self.recv().await.ok_or(ClosedChannel {})
}
}

Expand Down

0 comments on commit 79ef630

Please sign in to comment.