Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoticTempest committed May 27, 2024
1 parent 4499b8f commit 2714fca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion node/src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async fn handle_block(
time_added: Instant::now(),
});
crate::metrics::NUM_SIGN_REQUESTS
.with_label_values(&[&ctx.gcp_service.account_id.as_str()])
.with_label_values(&[ctx.gcp_service.account_id.as_str()])
.inc();
drop(queue);
}
Expand Down
4 changes: 2 additions & 2 deletions node/src/rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub async fn vote_for_public_key(
.await?;

match result.status() {
FinalExecutionStatus::SuccessValue(value) => Ok(serde_json::from_slice(&value)?),
FinalExecutionStatus::SuccessValue(value) => Ok(serde_json::from_slice(value)?),
status => anyhow::bail!("unexpected status: {:?}", status),
}
}
Expand All @@ -57,7 +57,7 @@ pub async fn vote_reshared(
.await?;

match result.status() {
FinalExecutionStatus::SuccessValue(value) => Ok(serde_json::from_slice(&value)?),
FinalExecutionStatus::SuccessValue(value) => Ok(serde_json::from_slice(value)?),
status => anyhow::bail!("unexpected status: {:?}", status),
}
}

0 comments on commit 2714fca

Please sign in to comment.