Skip to content

Commit

Permalink
fix(rust-analyzer): nits that are showing up as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Feb 20, 2025
1 parent f3159db commit 4f66afa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/fuel-core/src/graphql_api/worker_service/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async fn run__relayed_transaction_events_are_added_to_storage() {
// when
let mut task =
worker_task_with_block_importer_and_db(block_importer, database.clone());
task.run(&mut state_watcher).await;
let _ = task.run(&mut state_watcher).await;
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;

// then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ mod tests {
// When
let result_with_new_version = result_with_new_version(new_version);
let _ = block_sender.send(result_with_new_version);
task.run(&mut StateWatcher::started()).await;
let _ = task.run(&mut StateWatcher::started()).await;

// Then
assert_eq!(
Expand Down
2 changes: 1 addition & 1 deletion crates/services/gas_price_service/src/v0/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ mod tests {
let initial_price = read_algo.next_gas_price();

// when
service.run(&mut watcher).await;
let _ = service.run(&mut watcher).await;
l2_block_sender.send(l2_block).await.unwrap();
service.shutdown().await.unwrap();

Expand Down
4 changes: 2 additions & 2 deletions crates/services/p2p/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@ pub mod tests {
watcher: &mut StateWatcher,
) -> (FuelPeerId, AppScore, String) {
loop {
task.run(watcher).await;
let _ = task.run(watcher).await;
if let Ok((peer_id, recv_report, service)) = report_receiver.try_recv() {
return (peer_id, recv_report, service);
}
Expand Down Expand Up @@ -1897,7 +1897,7 @@ pub mod tests {

for _ in 0..100 {
// When
task.run(&mut watcher).await;
let _ = task.run(&mut watcher).await;

// Then
block_processed_receiver
Expand Down

0 comments on commit 4f66afa

Please sign in to comment.