Skip to content

Commit

Permalink
chore: cleanup clippy directives
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Nov 18, 2024
1 parent 8a7bfa7 commit b3ad15e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/client_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ struct CandidateMetadata {

/// Given a list of indexings, build a list of candidates that are within the required block range
/// and have the required performance.
#[allow(clippy::too_many_arguments)]
fn build_candidates_list(
ctx: &Context,
budget: u128,
Expand Down
8 changes: 2 additions & 6 deletions src/network/internal/indexer_processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ async fn process_indexer_indexings(
.await;

// Update the indexer's indexings info with the cost models
let indexer_indexings = indexer_indexings
indexer_indexings
.into_iter()
.map(|(id, res)| {
let info = match res {
Expand All @@ -426,11 +426,7 @@ async fn process_indexer_indexings(
let fee = indexer_cost_models.remove(&id).unwrap_or(0);
(id, Ok(info.with_fee(fee)))
})
.collect::<HashMap<_, _>>();

// Return the processed indexer's indexings
#[allow(clippy::let_and_return)]
indexer_indexings
.collect()
}

/// Resolve and check if any of the indexer's indexings should be blocked by POI.
Expand Down
1 change: 0 additions & 1 deletion src/reports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ pub struct Topics {
}

impl Reporter {
#[allow(clippy::too_many_arguments)]
pub fn create(
tap_signer: Address,
graph_env: String,
Expand Down

0 comments on commit b3ad15e

Please sign in to comment.