Skip to content

Commit ceb5b7e

Browse files
committed
chore: keep clippy happy
1 parent 04dc3b6 commit ceb5b7e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/clients/beacon/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ impl CommonBeaconClient for BeaconClient {
9595
}
9696

9797
async fn get_spec(&self) -> ClientResult<Option<Spec>> {
98-
let path = format!("v1/config/spec");
99-
let url = self.base_url.join(path.as_str())?;
98+
let url = self.base_url.join("v1/config/spec")?;
10099

101100
json_get!(&self.client, url, SpecResponse, self.exp_backoff.clone()).map(|res| match res {
102101
Some(r) => Some(r.data),

src/clients/blobscan/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ impl<'a>
227227
impl<'a> From<(&'a BeaconBlob, u32, &B256)> for Blob {
228228
fn from((blob, index, tx_hash): (&'a BeaconBlob, u32, &B256)) -> Self {
229229
Self {
230-
tx_hash: tx_hash.clone(),
230+
tx_hash: *tx_hash,
231231
index,
232232
commitment: blob.kzg_commitment,
233233
proof: blob.kzg_proof,

src/indexer/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl Indexer {
112112
);
113113

114114
let dencun_fork_slot = self.context.network().dencun_fork_slot;
115-
let backfill_completed = lowest_synced_slot.map_or(false, |slot| slot <= dencun_fork_slot);
115+
let backfill_completed = lowest_synced_slot.is_some_and(|slot| slot <= dencun_fork_slot);
116116

117117
if !self.disable_backfill && !backfill_completed {
118118
let task = IndexingTask::new(
@@ -144,7 +144,7 @@ impl Indexer {
144144
last_synced_slot,
145145
});
146146

147-
while let Some(error_report) = self.error_report_rx.recv().await {
147+
if let Some(error_report) = self.error_report_rx.recv().await {
148148
return Err(IndexerError::IndexingTaskError {
149149
task_name: error_report.task_name,
150150
error: error_report.error,

0 commit comments

Comments
 (0)