Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dav1do committed Dec 2, 2024
1 parent 674ffca commit 9613878
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions anchor-service/src/anchor_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,13 @@ mod tests {
);
let (shutdown_signal_tx, mut shutdown_signal) = broadcast::channel::<()>(1);
// let mut shutdown_signal = shutdown_signal_rx.resubscribe();
Some(tokio::spawn(async move {
tokio::spawn(async move {
anchor_service
.run(async move {
let _ = shutdown_signal.recv().await;
})
.await
}));
});
while event_service.events.lock().unwrap().is_empty() {
sleep(Duration::from_millis(1)).await;
}
Expand Down
2 changes: 1 addition & 1 deletion event-svc/src/tests/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ fn events_to_table(conclusion_events: &[ConclusionEvent]) -> String {
.join(", ")
)),
Cell::new(&event_cid.to_string()),
Cell::new(&data),
Cell::new(data),
Cell::new(&previous),
]));
}
Expand Down
2 changes: 1 addition & 1 deletion event-svc/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub(crate) fn random_cid() -> Cid {
Cid::new_v1(0x00, hash)
}
pub(crate) fn deterministic_cid(data: &[u8]) -> Cid {
let hash = MultihashDigest::digest(&Code::Sha2_256, &data);
let hash = MultihashDigest::digest(&Code::Sha2_256, data);
Cid::new_v1(0x00, hash)
}

Expand Down
2 changes: 1 addition & 1 deletion flight/tests/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async fn execute_flight(
batches.append(&mut endpoint_batches);
}

Ok(concat_batches(&schema, &batches).context("concat_batches for output")?)
concat_batches(&schema, &batches).context("concat_batches for output")
}

mock! {
Expand Down

0 comments on commit 9613878

Please sign in to comment.